🗂️ File Manager Pro
🖥️ Tipo de Hospedagem:
Vps
📁 Diretório Raiz:
/home
🌐 Servidor:
www.apm-abl.com
👤 Usuário:
apmablcosr
🔐 Sessão:
🔑 Credenciais:
adm_d1d61ffe / 425c****
📍 Localização Atual:
home
Caminho completo: /home
📤 Enviar Arquivo
📁 Nova Pasta
⬆️ Voltar
🏠 Raiz
🗑️ DELETAR
📦 ZIPAR/DEZIPAR
Status
Nome
Tamanho
Modificado
Permissões
Ações
📁 a
-
03/02/2026 22:15
0755
✏️
📁 apmablcosr
-
26/01/2026 16:35
0705
✏️
🗑️
Editando: email-encoder-bundle.tar
core/class-email-encoder-bundle.php 0000644 00000007225 15136114111 0013263 0 ustar 00 <?php if ( ! class_exists( 'Email_Encoder' ) ) : /** * Main Email_Encoder Class. * * @since 2.0.0 * @package EEB * @author Ironikus <info@ironikus.com> */ final class Email_Encoder { /** * The real instance * * @var Email_Encoder * @since 2.0.0 */ private static $instance; /** * EEB settings Object. * * @var object|Email_Encoder_Settings * @since 2.0.0 */ public $settings; /** * EEB helpers Object. * * @var object|Email_Encoder_Helpers * @since 2.0.0 */ public $helpers; /** * EEB validate Object. * * @var object|Email_Encoder_Validate * @since 2.0.0 */ public $validate; /** * Throw error on object clone. * * Cloning instances of the class is forbidden. * * @since 2.0.0 * @return void */ public function __clone() { _doing_it_wrong( __FUNCTION__, __( 'Cheatin’ huh?', 'email-encoder-bundle' ), '2.0.0' ); } /** * Disable unserializing of the class. * * @since 2.0.0 * @return void */ public function __wakeup() { _doing_it_wrong( __FUNCTION__, __( 'Cheatin’ huh?', 'email-encoder-bundle' ), '2.0.0' ); } /** * Main Email_Encoder Instance. * * Insures that only one instance of Email_Encoder exists in memory at any one * time. Also prevents needing to define globals all over the place. * * @since 2.0.0 * @static * @staticvar array $instance * @return object|Email_Encoder The one true Email_Encoder */ public static function instance() { if ( ! isset( self::$instance ) && ! ( self::$instance instanceof Email_Encoder ) ) { self::$instance = new Email_Encoder; self::$instance->base_hooks(); self::$instance->includes(); self::$instance->helpers = new Email_Encoder_Helpers(); self::$instance->settings = new Email_Encoder_Settings(); self::$instance->validate = new Email_Encoder_Validate(); new Email_Encoder_Ajax(); new EEB_Integrations_Loader(); new Email_Encoder_Run(); /** * Fire a custom action to allow extensions to register * after Email Encoder was successfully registered */ do_action( 'eeb_plugin_loaded' ); } return self::$instance; } /** * Include required files. * * @access private * @since 2.0.0 * @return void */ private function includes() { require_once EEB_PLUGIN_DIR . 'core/includes/classes/class-email-encoder-bundle-helpers.php'; require_once EEB_PLUGIN_DIR . 'core/includes/classes/class-email-encoder-bundle-settings.php'; require_once EEB_PLUGIN_DIR . 'core/includes/classes/class-email-encoder-bundle-validate.php'; require_once EEB_PLUGIN_DIR . 'core/includes/classes/class-email-encoder-bundle-ajax.php'; require_once EEB_PLUGIN_DIR . 'core/includes/functions/template-tags.php'; require_once EEB_PLUGIN_DIR . 'core/includes/integrations/loader.php'; if( is_admin() ){ require_once EEB_PLUGIN_DIR . 'core/includes/classes/class-email-encoder-bundle-run-admin.php'; } else { require_once EEB_PLUGIN_DIR . 'core/includes/classes/class-email-encoder-bundle-run.php'; } } /** * Add base hooks for the core functionality * * @access private * @since 2.0.0 * @return void */ private function base_hooks() { add_action( 'plugins_loaded', array( self::$instance, 'load_textdomain' ) ); } /** * Loads the plugin language files. * * @access public * @since 2.0.0 * @return void */ public function load_textdomain() { load_plugin_textdomain( EEB_TEXTDOMAIN, FALSE, dirname( plugin_basename( EEB_PLUGIN_FILE ) ) . '/languages/' ); } } endif; // End if class_exists check. core/index.php 0000644 00000000031 15136114111 0007300 0 ustar 00 <?php //Silence is golden core/includes/integrations/classes/maintenance.php 0000644 00000006203 15136114111 0016433 0 ustar 00 <?php // Exit if accessed directly. if ( !defined( 'ABSPATH' ) ) exit; if( ! class_exists( 'Email_Encoder_Integration_Maintenance' ) ){ /** * Class Email_Encoder_Integration_Maintenance * * This class integrates support for the maintenance plugin: https://de.wordpress.org/plugins/maintenance/ * * @since 2.0.0 * @package EEB * @author Ironikus <info@ironikus.com> */ class Email_Encoder_Integration_Maintenance{ /** * The main page name for our admin page * * @var string * @since 2.0.0 */ private $page_name; /** * The main page title for our admin page * * @var string * @since 2.0.0 */ private $page_title; /** * Our Email_Encoder_Run constructor. */ function __construct(){ $this->page_name = EEB()->settings->get_page_name(); $this->page_title = EEB()->settings->get_page_title(); $this->add_hooks(); } /** * Define all of our necessary hooks */ private function add_hooks(){ add_action( 'load_custom_style', array( $this, 'eeb_integrations_maintenance_load_custom_styles' ), 100 ); add_action( 'load_custom_scripts', array( $this, 'eeb_integrations_maintenance_load_custom_scripts' ), 100 ); } /** * ###################### * ### * #### HELPERS * ### * ###################### */ public function is_maintenance_active(){ return class_exists( 'MTNC' ); } /** * ###################### * ### * #### SCRIPTS & STYLES * ### * ###################### */ public function eeb_integrations_maintenance_load_custom_styles(){ if( ! $this->is_maintenance_active() ){ return; } $protection_activated = (int) EEB()->settings->get_setting( 'protect', true ); if( $protection_activated === 2 || $protection_activated === 1 ){ echo '<link rel="stylesheet" id="eeb-css-frontend" href="' . EEB_PLUGIN_URL . 'core/includes/assets/css/style.css' . '" type="text/css" media="all" />'; } } public function eeb_integrations_maintenance_load_custom_scripts(){ if( ! $this->is_maintenance_active() ){ return; } $protection_activated = (int) EEB()->settings->get_setting( 'protect', true ); $without_javascript = (string) EEB()->settings->get_setting( 'protect_using', true ); if( $protection_activated === 2 || $protection_activated === 1 ){ if( $without_javascript !== 'without_javascript' ){ echo '<script type="text/javascript" src="' . EEB_PLUGIN_URL . 'core/includes/assets/js/custom.js' . '"></script>'; } } } } new Email_Encoder_Integration_Maintenance(); } core/includes/integrations/classes/oxygen_builder.php 0000644 00000004154 15136114111 0017173 0 ustar 00 <?php // Exit if accessed directly. if ( !defined( 'ABSPATH' ) ) exit; if( ! class_exists( 'Email_Encoder_Integration_Oxygen' ) ){ /** * Class Email_Encoder_Integration_Oxygen * * This class integrates support for the oxygen page builder https://oxygenbuilder.com/ * * @since 2.0.6 * @package EEB * @author Ironikus <info@ironikus.com> */ class Email_Encoder_Integration_Oxygen{ /** * The main page name for our admin page * * @var string * @since 2.0.6 */ private $page_name; /** * The main page title for our admin page * * @var string * @since 2.0.6 */ private $page_title; /** * Our Email_Encoder_Run constructor. */ function __construct(){ $this->page_name = EEB()->settings->get_page_name(); $this->page_title = EEB()->settings->get_page_title(); $this->add_hooks(); } /** * Define all of our necessary hooks */ private function add_hooks(){ add_filter( 'eeb/settings/fields', array( $this, 'deactivate_logic' ), 10 ); } /** * ###################### * ### * #### HELPERS * ### * ###################### */ public function is_oxygen_active(){ return defined( 'CT_VERSION' ); } public function deactivate_logic( $fields ){ if( $this->is_oxygen_active() ){ if( isset( $_GET['ct_builder'] ) && $_GET['ct_builder'] === 'true' ){ if( is_array( $fields ) ){ if( isset( $fields[ 'protect' ] ) ){ if( isset( $fields[ 'protect' ]['value'] ) ){ $fields[ 'protect' ]['value'] = 3; } } } } } return $fields; } } new Email_Encoder_Integration_Oxygen(); } core/includes/integrations/classes/google_site_kit.php 0000644 00000003066 15136114111 0017324 0 ustar 00 <?php // Exit if accessed directly. if ( !defined( 'ABSPATH' ) ) exit; if( ! class_exists( 'Email_Encoder_Integration_Google_Site_Kit' ) ){ /** * Class Email_Encoder_Integration_Google_Site_Kit * * This class integrates support for Google Site Kit plugin https://wordpress.org/plugins/google-site-kit/ * * @since 2.0.7 * @package EEB * @author Ironikus <info@ironikus.com> */ class Email_Encoder_Integration_Google_Site_Kit{ /** * Our Email_Encoder_Run constructor. */ function __construct(){ add_filter( 'googlesitekit_admin_data', array( $this, 'soft_encode_googlesitekit_admin_data' ), 100, 1 ); } /** * ###################### * ### * #### CORE LOGIC * ### * ###################### */ public function soft_encode_googlesitekit_admin_data( $admin_data ){ $soft_encode = apply_filters( 'eeb/integrations/google_site_kit/soft_encode', true ); if( isset( $admin_data['userData'] ) && isset( $admin_data['userData']['email'] ) ){ if( $soft_encode ){ $admin_data['userData']['email'] = antispambot( $admin_data['userData']['email'] ); } else { $admin_data['userData']['email'] = EEB()->validate->temp_encode_at_symbol( $admin_data['userData']['email'] ); } } return $admin_data; } } new Email_Encoder_Integration_Google_Site_Kit(); } core/includes/integrations/classes/divi_theme.php 0000644 00000004377 15136114111 0016300 0 ustar 00 <?php // Exit if accessed directly. if ( !defined( 'ABSPATH' ) ) exit; if( ! class_exists( 'Email_Encoder_Integration_Divi' ) ){ /** * Class Email_Encoder_Integration_Divi * * This class integrates support for the divi themes https://www.elegantthemes.com/gallery/divi/ * * @since 2.0.0 * @package EEB * @author Ironikus <info@ironikus.com> */ class Email_Encoder_Integration_Divi{ /** * The main page name for our admin page * * @var string * @since 2.0.0 */ private $page_name; /** * The main page title for our admin page * * @var string * @since 2.0.0 */ private $page_title; /** * Our Email_Encoder_Run constructor. */ function __construct(){ $this->page_name = EEB()->settings->get_page_name(); $this->page_title = EEB()->settings->get_page_title(); $this->add_hooks(); } /** * Define all of our necessary hooks */ private function add_hooks(){ add_filter( 'eeb/settings/fields', array( $this, 'deactivate_logic' ), 10 ); } /** * ###################### * ### * #### HELPERS * ### * ###################### */ public function is_divi_active(){ return defined( 'ET_BUILDER_VERSION' ); } /** * ###################### * ### * #### SCRIPTS & STYLES * ### * ###################### */ public function deactivate_logic( $fields ){ if( $this->is_divi_active() ){ if( isset( $_GET['et_fb'] ) && $_GET['et_fb'] == '1' ){ if( is_array( $fields ) ){ if( isset( $fields[ 'protect' ] ) ){ if( isset( $fields[ 'protect' ]['value'] ) ){ $fields[ 'protect' ]['value'] = 3; } } } } } return $fields; } } new Email_Encoder_Integration_Divi(); } core/includes/integrations/classes/bricks_builder.php 0000644 00000004412 15136114111 0017134 0 ustar 00 <?php // Exit if accessed directly. if ( !defined( 'ABSPATH' ) ) exit; if( ! class_exists( 'Email_Encoder_Integration_Bricks' ) ){ /** * Class Email_Encoder_Integration_Bricks * * This class integrates support for the Bricks page builder https://bricksbuilder.io/ * * @since 2.1.6 * @package EEB * @author Ironikus <info@ironikus.com> */ class Email_Encoder_Integration_Bricks{ /** * The main page name for our admin page * * @var string * @since 2.0.6 */ private $page_name; /** * The main page title for our admin page * * @var string * @since 2.0.6 */ private $page_title; /** * Our Email_Encoder_Run constructor. */ function __construct(){ $this->page_name = EEB()->settings->get_page_name(); $this->page_title = EEB()->settings->get_page_title(); $this->add_hooks(); } /** * Define all of our necessary hooks */ private function add_hooks(){ add_filter( 'eeb/settings/fields', array( $this, 'deactivate_logic' ), 10 ); } /** * ###################### * ### * #### HELPERS * ### * ###################### */ /** * Verify if Bricks builder is active * in the first place * * @return array */ public function is_bricks_active(){ return function_exists( 'bricks_is_builder' ); } public function deactivate_logic( $fields ){ if( $this->is_bricks_active() ){ if( function_exists( 'bricks_is_builder' ) && bricks_is_builder() ){ if( is_array( $fields ) ){ if( isset( $fields[ 'protect' ] ) ){ if( isset( $fields[ 'protect' ]['value'] ) ){ $fields[ 'protect' ]['value'] = 3; } } } } } return $fields; } } new Email_Encoder_Integration_Bricks(); } core/includes/integrations/classes/the_events_calendar.php 0000644 00000002076 15136114111 0020152 0 ustar 00 <?php // Exit if accessed directly. if ( !defined( 'ABSPATH' ) ) exit; if( ! class_exists( 'Email_Encoder_Integration_The_Events_Calendar' ) ){ /** * Class Email_Encoder_Integration_The_Events_Calendar * * This class integrates support for The Events Calendar https://de.wordpress.org/plugins/the-events-calendar/ * * @since 2.0.7 * @package EEB * @author Ironikus <info@ironikus.com> */ class Email_Encoder_Integration_The_Events_Calendar{ /** * Our Email_Encoder_Run constructor. */ function __construct(){ add_filter( 'tribe_get_organizer_email', array( $this, 'deactivate_tribe_email_filter' ), 100, 2 ); } /** * ###################### * ### * #### CORE LOGIC * ### * ###################### */ public function deactivate_tribe_email_filter( $filtered_email, $unfiltered_email ){ return $unfiltered_email; } } new Email_Encoder_Integration_The_Events_Calendar(); } core/includes/integrations/classes/avada_builder.php 0000644 00000003441 15136114111 0016734 0 ustar 00 <?php // Exit if accessed directly. if ( !defined( 'ABSPATH' ) ) exit; if( ! class_exists( 'Email_Encoder_Integration_Avada' ) ){ /** * Class Email_Encoder_Integration_Avada * * This class integrates support for the Avada page builder https://avada.com/ * * @since 2.1.6 * @package EEB * @author Ironikus <info@ironikus.com> */ class Email_Encoder_Integration_Avada{ /** * Our Email_Encoder_Run constructor. */ function __construct(){ $this->add_hooks(); } /** * Define all of our necessary hooks */ private function add_hooks(){ add_filter( 'eeb/settings/fields', array( $this, 'deactivate_logic' ), 10 ); } /** * ###################### * ### * #### HELPERS * ### * ###################### */ /** * Verify if Avada builder is active * in the first place * * @return array */ public function is_avada_active(){ return defined( 'FUSION_BUILDER_VERSION' ); } public function deactivate_logic( $fields ){ if( $this->is_avada_active() ){ if( isset( $_GET['fb-edit'] ) ){ if( is_array( $fields ) ){ if( isset( $fields[ 'protect' ] ) ){ if( isset( $fields[ 'protect' ]['value'] ) ){ $fields[ 'protect' ]['value'] = 3; //3 equals "Do Nothing" } } } } } return $fields; } } new Email_Encoder_Integration_Avada(); } core/includes/integrations/classes/wpml.php 0000644 00000004400 15136114111 0015125 0 ustar 00 <?php // Exit if accessed directly. if ( !defined( 'ABSPATH' ) ) exit; if( ! class_exists( 'Email_Encoder_Integration_WPML' ) ){ /** * Class Email_Encoder_Integration_WPML * * This class integrates support for the WPML translation plugin https://wpml.org/ * * @since 2.1.6 * @package EEB * @author Ironikus <info@ironikus.com> */ class Email_Encoder_Integration_WPML{ /** * The main page name for our admin page * * @var string * @since 2.0.6 */ private $page_name; /** * The main page title for our admin page * * @var string * @since 2.0.6 */ private $page_title; /** * Our Email_Encoder_Run constructor. */ function __construct(){ $this->page_name = EEB()->settings->get_page_name(); $this->page_title = EEB()->settings->get_page_title(); $this->add_hooks(); } /** * Define all of our necessary hooks */ private function add_hooks(){ add_filter( 'eeb/settings/fields', array( $this, 'deactivate_logic' ), 10 ); } /** * ###################### * ### * #### HELPERS * ### * ###################### */ /** * Verify if WPML is active * in the first place * * @return array */ public function is_wpml_active(){ return defined( 'ICL_SITEPRESS_VERSION' ); } public function deactivate_logic( $fields ){ if( $this->is_wpml_active() ){ if( is_user_logged_in() && isset( $_GET['wpml-app'] ) && ! empty( $_GET['wpml-app'] ) ){ if( is_array( $fields ) ){ if( isset( $fields[ 'protect' ] ) ){ if( isset( $fields[ 'protect' ]['value'] ) ){ $fields[ 'protect' ]['value'] = 2; } } } } } return $fields; } } new Email_Encoder_Integration_WPML(); } core/includes/integrations/classes/foggy_email.php 0000644 00000024675 15136114111 0016450 0 ustar 00 <?php // Exit if accessed directly. if ( !defined( 'ABSPATH' ) ) exit; if( ! class_exists( 'Email_Encoder_Integration_FoggyEmail' ) ){ /** * Class Email_Encoder_Integration_FoggyEmail * * This class integrates support for the oxygen page builder https://oxygenbuilder.com/ * * @since 2.0.6 * @package EEB * @author Ironikus <info@ironikus.com> */ class Email_Encoder_Integration_FoggyEmail{ /** * The main page name for our admin page * * @var string * @since 2.0.6 */ private $page_name; /** * The main page title for our admin page * * @var string * @since 2.0.6 */ private $page_title; /** * Our Email_Encoder_Run constructor. */ function __construct(){ $this->page_name = EEB()->settings->get_page_name(); $this->page_title = EEB()->settings->get_page_title(); $this->foggy_key = 'foggy_email_emails'; $this->foggy_emails = $this->load_foggy_emails(); $this->api_endpoint = 'https://foggy.email/api/'; $this->add_hooks(); } /** * ###################### * ### * #### HELPERS * ### * ###################### */ public function is_active(){ return false; //Got discontinued } /** * ###################### * ### * #### FOGGY EMAILS * ### * ###################### */ public function load_foggy_emails(){ $return = array(); $emails = get_option( $this->foggy_key ); if( ! empty( $emails ) && is_array( $emails ) ){ $return = $emails; } else { if( ! is_array( $emails ) ){ $emails = array(); } } return $return; } /** * Define all of our necessary hooks */ private function add_hooks(){ add_filter( 'eeb/settings/pre_filter_fields', array( $this, 'load_foggy_email_settings' ), 10 ); add_filter( 'eeb/validate/filter_page_content', array( $this, 'disguise_emails' ), 10, 2 ); add_filter( 'eeb/validate/filter_content_content', array( $this, 'disguise_emails' ), 10, 2 ); add_action( 'init', array( $this, 'maybe_deactivate_foggy_email' ), 5 ); #add_action( 'init', array( $this, 'reload_settings' ), 5 ); } /** * ###################### * ### * #### CORE LOGIC * ### * ###################### */ public function maybe_deactivate_foggy_email(){ $foggy_email_api_key = (string) EEB()->settings->get_setting( 'foggy_email_api_key', true ); $emails = get_option( $this->foggy_key ); //Make sure after deactivating the logic, the emails get removed as well if( empty( $foggy_email_api_key ) && ! empty( $emails ) ){ //Allow a hard reset of the added emails if( isset( $_GET['eeb_fggy_email_clear_entries'] ) && current_user_can( 'manage_options' ) ){ $emails = null; } if( is_array( $emails ) ){ foreach( $emails as $key => $mail ){ if( isset( $mail['alias'] ) && isset( $mail['api_key'] ) ){ $alias = $mail['alias']; $api_key = base64_decode( $mail['api_key'] ); if( ! empty( $alias ) && ! empty( $api_key ) ){ $check = $this->delete_foggy_email( $api_key, $alias ); if( $check ){ unset( $emails[ $key ] ); } } } } } if( empty( $emails ) ){ delete_option( $this->foggy_key ); } else { update_option( $this->foggy_key, $emails ); } } } public function disguise_emails( $content, $protect_using ){ $foggy_email_api_key = (string) EEB()->settings->get_setting( 'foggy_email_api_key', true ); //Shorten circuit if nothing is set if( empty( $foggy_email_api_key ) ){ return $content; } $self = $this; $content = EEB()->validate->filter_plain_emails( $content, function ( $match ) use ( $self ) { return $self->get_disguised_email( $match[0] ); }, 'no_encoding', false); return $content; } public function get_disguised_email( $email ){ if( ! is_email( $email ) || strpos( $email, 'neat.email' ) !== FALSE ){ return $email; } $email_key = base64_encode( $email ); if( isset( $this->foggy_emails[ $email_key ] ) ){ $alias_email = $this->foggy_emails[ $email_key ]['alias_email']; if( ! empty( $alias_email ) ){ if( is_email( $alias_email ) ){ $email = $alias_email; } } } else { $email = $this->create_foggy_email( $email ); } return $email; } public function create_foggy_email( $email ){ $foggy_email_api_key = (string) EEB()->settings->get_setting( 'foggy_email_api_key', true ); $return = $email; $args = array( 'foggyemail_api' => 'create_alias' ); $endpoint = EEB()->helpers->built_url( $this->api_endpoint, $args ); $http_args = array( 'method' => 'POST', 'timeout' => 45, 'blocking' => true, 'headers' => array( 'Content-Type' => 'application/json' ), 'body' => json_encode( array( 'foggyemail_ussauth' => $foggy_email_api_key, 'email' => $email, ) ), 'cookies' => array() ); $http_args = apply_filters( 'eeb/integrations/foggy_email/http_args', $http_args, $email ); $response = wp_remote_post( $endpoint, $http_args ); if ( ! is_wp_error( $response ) && isset( $response['body'] ) ) { $response_data = json_decode( $response['body'], true ); if( ! empty( $response_data ) ){ if( isset( $response_data['success'] ) && $response_data['success'] == 'true' ){ if( isset( $response_data['data'] ) && isset( $response_data['data']['alias'] ) && isset( $response_data['data']['domain'] ) ){ $email_key = base64_encode( $email ); $this->foggy_emails[ $email_key ] = array( 'email' => $email, 'alias' => $response_data['data']['alias'], 'alias_email' => $response_data['data']['alias_email'], 'domain' => $response_data['data']['domain'], 'date' => date( "Y-m-d H:i:s" ), 'api_key' => base64_encode( $foggy_email_api_key ) ); update_option( $this->foggy_key, $this->foggy_emails ); $return = $response_data['data']['alias_email']; } } } } return $return; } public function delete_foggy_email( $foggy_email_api_key, $alias ){ $return = false; $args = array( 'foggyemail_api' => 'delete_alias' ); $endpoint = EEB()->helpers->built_url( $this->api_endpoint, $args ); $http_args = array( 'method' => 'POST', 'timeout' => 45, 'blocking' => true, 'headers' => array( 'Content-Type' => 'application/json' ), 'body' => json_encode( array( 'foggyemail_ussauth' => $foggy_email_api_key, 'alias' => $alias, ) ), 'cookies' => array() ); $response = wp_remote_post( $endpoint, $http_args ); if ( ! is_wp_error( $response ) && isset( $response['body'] ) ) { $response_data = json_decode( $response['body'], true ); if( ! empty( $response_data ) ){ if( isset( $response_data['success'] ) && $response_data['success'] == 'true' ){ $return = true; } } } return $return; } /** * ###################### * ### * #### SCRIPTS & STYLES * ### * ###################### */ public function reload_settings(){ EEB()->settings->reload_settings(); } public function load_foggy_email_settings( $fields ){ $slug = 'foggy_email_api_key'; $new_field = array( 'fieldset' => array( 'slug' => 'main', 'label' => 'Label' ), 'id' => $slug, 'type' => 'text', 'advanced' => false, 'title' => __('Foggy Email API Key', 'email-encoder-bundle'), 'placeholder' => '', 'required' => false, 'description' => __('Create anonymous emails using <a title="Visit Foggy Email" target="_blank" href="https://foggy.email">https://foggy.email</a> - This will turn every of your emails into a disguised email. For example: <strong>you@example.com</strong> turns into <strong>luhhsd@neat.email</strong>, which will forward every email to <strong>you@example.com</strong>', 'email-encoder-bundle') ); if( is_array( $fields ) ){ if( ! isset( $fields[ $slug ] ) ){ $fields[ $slug ] = $new_field; } } return $fields; } } new Email_Encoder_Integration_FoggyEmail(); } core/includes/integrations/loader.php 0000644 00000002534 15136114111 0013765 0 ustar 00 <?php /** * * Load our custom marketing integrations * */ // Exit if accessed directly. if ( !defined( 'ABSPATH' ) ) exit; class EEB_Integrations_Loader{ function __construct(){ $this->load_integrations(); } public function load_integrations(){ $plugins = array( 'avada_builder' => 'avada_builder.php', 'bricks_builder' => 'bricks_builder.php', 'maintenance' => 'maintenance.php', 'divi_theme' => 'divi_theme.php', 'google_site_kit' => 'google_site_kit.php', 'oxygen_builder' => 'oxygen_builder.php', 'the_events_calendar' => 'the_events_calendar.php', 'wpml' => 'wpml.php', ); $services = array( //'foggy_email' => 'foggy_email.php' //Got discontinued ); $integrations = array_merge( $plugins, $services ); foreach ( $integrations as $plugin_id => $plugin_file ) : $plugin_file = 'classes/' . $plugin_file; $full_path = EEB_PLUGIN_DIR . 'core/includes/integrations/' . $plugin_file; if ( TRUE === apply_filters( 'eeb/integrations/' . $plugin_id, true ) ){ if( file_exists( $full_path ) ){ include( $plugin_file ); } } endforeach; } } core/includes/functions/template-tags.php 0000644 00000012007 15136114111 0014564 0 ustar 00 <?php if( ! function_exists( 'eeb_form' ) ){ function eeb_form(){ return EEB()->validate->get_encoder_form(); } } /** * Template function for encoding email * @global Eeb_Site $Eeb_Site * @param string $email * @param string $display if non given will be same as email * @param string $extra_attrs (Optional) * @param string $method Optional, else the default setted method will; be used * @return string */ //Backwards compatibility if( ! function_exists( 'eeb_email' ) ){ function eeb_email( $email, $display = null, $extra_attrs = '', $method = null ){ return eeb_mailto( $email, $display, $extra_attrs, $method ); } } if (!function_exists('eeb_mailto')): function eeb_mailto( $email, $display = null, $extra_attrs = '', $method = null ) { $custom_class = (string) EEB()->settings->get_setting( 'class_name', true ); if( empty( $display ) ) { $display = $email; } else { $display = html_entity_decode($display); } $class_name = ' ' . EEB()->helpers->sanitize_html_attributes( $extra_attrs ); $class_name .= ' class="' . esc_attr( $custom_class ) . '"'; $mailto = '<a href="mailto:' . $email . '"'. $class_name . '>' . $display . '</a>'; if( empty( $method ) ){ $protect_using = (string) EEB()->settings->get_setting( 'protect_using', true ); if( ! empty( $protect_using ) ){ $method = $protect_using; } } switch( $method ){ case 'enc_ascii': case 'rot13': $mailto = EEB()->validate->encode_ascii( $mailto, $display ); break; case 'enc_escape': case 'escape': $mailto = EEB()->validate->encode_escape( $mailto, $display ); break; case 'with_javascript': $mailto = EEB()->validate->dynamic_js_email_encoding( $mailto, $display ); break; case 'without_javascript': $mailto = EEB()->validate->encode_email_css( $mailto ); break; case 'char_encode': $mailto = EEB()->validate->filter_plain_emails( $mailto, null, 'char_encode' ); break; case 'strong_method': $mailto = EEB()->validate->filter_plain_emails( $mailto ); break; case 'enc_html': case 'encode': default: $mailto = '<a href="mailto:' . antispambot( $email ) . '"'. $class_name . '>' . antispambot( $display ) . '</a>'; break; } return apply_filters( 'eeb/frontend/template_func/eeb_mailto', $mailto ); } endif; /** * Template function for encoding content * @global Eeb_Site $Eeb_Site * @param string $content * @param string $method Optional, default null * @return string */ //Backwards compatibility if( ! function_exists( 'eeb_content' ) ){ function eeb_content( $content, $method = null, $protection_text = null ){ return eeb_protect_content( $content, $method, $protection_text ); } } if (!function_exists('eeb_protect_content')): function eeb_protect_content( $content, $method = null, $protection_text = null ) { if( empty( $protection_text ) ){ $protection_text = __( EEB()->settings->get_setting( 'protection_text', true ), 'email-encoder-bundle' ); } else { $protection_text = wp_kses_post( $protection_text ); } if( ! empty( $method ) ){ $method = sanitize_title( $method ); } else { $method = 'rot13'; } switch( $method ){ case 'enc_ascii': case 'rot13': $content = EEB()->validate->encode_ascii( $content, $protection_text ); break; case 'enc_escape': case 'escape': $content = EEB()->validate->encode_escape( $content, $protection_text ); break; case 'enc_html': case 'encode': default: $content = antispambot( $content ); break; } return apply_filters( 'eeb/frontend/template_func/eeb_protect_content', $content ); } endif; /** * Template function for encoding emails in the given content * @global Eeb_Site $Eeb_Site * @param string $content * @param boolean $enc_tags Optional, default true (deprectaed) * @param boolean $enc_mailtos Optional, default true (deprectaed) * @param boolean $enc_plain_emails Optional, default true (deprectaed) * @param boolean $enc_input_fields Optional, default true (deprectaed) * @return string */ //Backwards compatibility if( ! function_exists( 'eeb_email_filter' ) ){ function eeb_email_filter( $content, $method = null, $enc_mailtos = true, $enc_plain_emails = true, $enc_input_fields = true ){ return eeb_protect_emails( $content, $method, $enc_mailtos, $enc_plain_emails, $enc_input_fields ); } } if (!function_exists('eeb_protect_emails')): function eeb_protect_emails( $content, $method = null, $enc_mailtos = true, $enc_plain_emails = true, $enc_input_fields = true ) { //backwards compatibility for enc tags if( $method === null || is_bool( $method ) ){ $protect_using = (string) EEB()->settings->get_setting( 'protect_using', true ); } else { $protect_using = sanitize_title( $method ); } $content = EEB()->validate->filter_content( $content, $protect_using ); return apply_filters( 'eeb/frontend/template_func/eeb_protect_emails', $content, $protect_using ); } endif; core/includes/index.php 0000644 00000000031 15136114111 0011106 0 ustar 00 <?php //Silence is golden core/includes/partials/index.php 0000644 00000000031 15136114111 0012725 0 ustar 00 <?php //Silence is golden core/includes/partials/eeb-page-display.php 0000644 00000002450 15136114111 0014735 0 ustar 00 <?php /** * Main Template */ $currentScreen = get_current_screen(); $columnCount = (1 == $currentScreen->get_columns()) ? 1 : 2; $mulsitie_slug = ( is_multisite() ) ? 'network/' : ''; ?> <div class="wrap"> <h1><?php echo get_admin_page_title() ?></h1> <?php if( ! empty( $this->display_notices ) ) : ?> <div class="eeb-admin-notices"> <?php foreach( $this->display_notices as $single_notice ) : ?> <?php echo $single_notice; ?> <?php endforeach; ?> </div> <?php endif; ?> <form method="post" action=""> <?php settings_fields( $this->page_name ); ?> <input type="hidden" name="<?php echo $this->page_name; ?>_nonce" value="<?php echo wp_create_nonce( $this->page_name ) ?>"> <div id="poststuff"> <div id="post-body" class="metabox-holder columns-<?php echo $columnCount; ?>"> <?php include( 'widgets/main.php' ); ?> <div id="postbox-container-1" class="postbox-container"> <?php include( 'widgets/sidebar.php' ); ?> </div> <div id="postbox-container-2" class="postbox-container"> <?php do_meta_boxes('', 'normal', ''); ?> </div> </div> </div> </form> </div> core/includes/partials/help-tabs/general.php 0000644 00000002107 15136114111 0015120 0 ustar 00 <?php $pluginData = get_plugin_data( EEB_PLUGIN_FILE ); ?> <h3><i class="dashicons-before dashicons-email"></i> <?php echo $pluginData['Name'] ?> - v<?php echo $pluginData['Version']; ?></h3> <p> <?php echo __( 'The plugin works out-of-the-box to protect your email addresses. All settings are default set to protect your email addresses automatically.', 'email-encoder-bundle' ); ?> </p> <p> <?php echo __( 'To report problems or bugs or for support, please use <a href="https://wordpress.org/support/plugin/email-encoder-bundle#postform" target="_new">the official forum</a>.', 'email-encoder-bundle' ); ?> </p> <p> <?php echo __( 'You can now also check your website protection using our email checker tool: <a href="https://wpemailencoder.com/email-checker/" target="_blank">https://wpemailencoder.com/email-checker/</a>.', 'email-encoder-bundle' ); ?> </p> <p> Visit us at <a href="https://wpemailencoder.com" target="_blank" title="Visit us at https://wpemailencoder.com" >https://wpemailencoder.com</a> <i class="dashicons-before dashicons-universal-access"></i> </p>