PluginProbe
AcyMailing – An Ultimate Newsletter Plugin and Marketing Automation Solution for WordPress / 10.2.2
AcyMailing – An Ultimate Newsletter Plugin and Marketing Automation Solution for WordPress v10.2.2
11.1.1 11.1.0 11.0.5 11.0.4 11.0.3 11.0.2 11.0.1 11.0.0 10.11.1 10.11.0 10.10.2 10.10.1 10.10.0 10.9.1 trunk 10.0.0 10.0.1 10.1.0 10.1.1 10.1.2 10.1.3 10.1.4 10.2.0 10.2.1 10.2.2 All 62 releases
acymailing / WpInit / Message.php

Message.php in AcyMailing – An Ultimate Newsletter Plugin and Marketing Automation Solution for WordPress 10.2.2, at WpInit/Message.php

27 lines 953 B
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2
3 namespace AcyMailing\WpInit;
4
5 class Message
6 {
7 public function __construct()
8 {
9 if (defined('WP_ADMIN') && WP_ADMIN) return;
10
11 if (defined('DOING_AJAX') && DOING_AJAX) return;
12
13 $locale = acym_getVar('string', '_locale', '');
14 if (!empty($locale)) return;
15
16 wp_enqueue_style('acy_front_messages_css', ACYM_CSS.'front/messages.min.css?v='.filemtime(ACYM_MEDIA.'css'.DS.'front'.DS.'messages.min.css'));
17 wp_enqueue_script('acy_front_messages_js', ACYM_JS.'front/messages.min.js?v='.filemtime(ACYM_MEDIA.'js'.DS.'front'.DS.'messages.min.js'));
18 wp_add_inline_script(
19 'acy_front_messages_js',
20 'var ACYM_AJAX_START = "'.admin_url('admin-ajax.php').'";
21 var ACYM_AJAX_PARAMS = "?action='.ACYM_COMPONENT.'_router&'.acym_noTemplate().'&nocache='.time().'";
22 var ACYM_AJAX = ACYM_AJAX_START + ACYM_AJAX_PARAMS;',
23 'before'
24 );
25 }
26 }
27