PluginProbe
Hostinger Tools / 3.0.41
Hostinger Tools v3.0.41
3.0.77 3.0.76 3.0.75 3.0.74 3.0.73 3.0.72 3.0.71 3.0.70 3.0.69 3.0.68 3.0.67 3.0.66 1.8.1 1.8.2 1.8.3 1.9.1 1.9.4 1.9.5 1.9.6 1.9.7 1.9.8 1.9.9 2.0.0 2.0.1 2.0.4 All 108 releases
← All changes | includes/Admin/Assets.php +38 -32 3.0.753.0.41 View file →
@@ -43,9 +43,9 @@
43 43 add_action( 'admin_enqueue_scripts', array( $this, 'admin_scripts' ) );
44 44 }
45 45 if ( is_admin() ) {
46 46 add_action( 'admin_enqueue_scripts', array( $this, 'global_styles' ) );
47 -
47 + add_action( 'admin_enqueue_scripts', array( $this, 'global_scripts' ) );
48 48 }
49 49 }
50 50
51 51 /**
@@ -54,11 +54,11 @@
54 54 public function admin_styles(): void {
55 55 // Vue frontend styles.
56 56 wp_enqueue_style(
57 57 'hostinger_tools_styles',
58 - HOSTINGER_VUE_ASSETS_URL . '/main.css',
58 + HOSTINGER_VUE_ASSETS_URL . '/main.min.css',
59 59 array(),
60 - HOSTINGER_WORDPRESS_PLUGIN_VERSION
60 + HOSTINGER_VERSION
61 61 );
62 62
63 63 // Plugin rating styles.
64 64 wp_enqueue_style(
@@ -64,9 +64,9 @@
64 64 wp_enqueue_style(
65 65 'hostinger_rating_styles',
66 66 HOSTINGER_ASSETS_URL . '/css/plugin-rating.min.css',
67 67 array(),
68 - HOSTINGER_WORDPRESS_PLUGIN_VERSION
68 + HOSTINGER_VERSION
69 69 );
70 70 }
71 71
72 72 public function global_styles(): void {
@@ -73,14 +73,24 @@
73 73 wp_enqueue_style(
74 74 'hostinger_tools_global_styles',
75 75 HOSTINGER_ASSETS_URL . 'css/hostinger-global.min.css',
76 76 array(),
77 - HOSTINGER_WORDPRESS_PLUGIN_VERSION
77 + HOSTINGER_VERSION
78 78 );
79 79 }
80 80
81 + public function global_scripts(): void {
82 + wp_enqueue_script(
83 + 'hostinger_tools_global_scripts',
84 + HOSTINGER_ASSETS_URL . 'js/hostinger-global-scripts.min.js',
85 + array(),
86 + HOSTINGER_VERSION,
87 + array(
88 + 'in_footer' => true,
89 + )
90 + );
91 + }
81 92
82 -
83 93 /**
84 94 * Enqueues scripts for the Hostinger admin pages.
85 95 */
86 96 public function admin_scripts(): void {
@@ -87,14 +97,14 @@
87 97 global $wp_version;
88 98
89 99 wp_enqueue_script(
90 100 'hostinger_tools_main_scripts',
91 - HOSTINGER_VUE_ASSETS_URL . '/main.js',
101 + HOSTINGER_VUE_ASSETS_URL . '/main.min.js',
92 102 array(
93 103 'jquery',
94 104 'wp-i18n',
95 105 ),
96 - HOSTINGER_WORDPRESS_PLUGIN_VERSION,
106 + HOSTINGER_VERSION,
97 107 false
98 108 );
99 109
100 110 wp_localize_script(
@@ -100,17 +110,19 @@
100 110 wp_localize_script(
101 111 'hostinger_tools_main_scripts',
102 112 'hostinger_tools_data',
103 113 array(
104 - 'home_url' => home_url(),
105 - 'site_url' => get_site_url(),
106 - 'plugin_url' => $this->helper->get_hostinger_plugin_url(),
107 - 'asset_url' => HOSTINGER_PLUGIN_URL,
108 - 'hplatform' => ! empty( $_SERVER['H_PLATFORM'] ) ? 1 : 0,
109 - 'edit_site_url' => $this->helper->get_edit_site_url(),
110 - 'llmstxt_file_url' => $this->llms_txt_file_helper->get_llmstxt_file_url(),
111 - 'llmstxt_file_user_generated' => $this->llms_txt_file_helper->is_user_generated_file(),
112 - 'translations' => array(
114 + 'home_url' => home_url(),
115 + 'site_url' => get_site_url(),
116 + 'plugin_url' => $this->helper->get_hostinger_plugin_url(),
117 + 'asset_url' => HOSTINGER_PLUGIN_URL,
118 + 'hplatform' => ! empty( $_SERVER['H_PLATFORM'] ) ? 1 : 0,
119 + 'plugin_split_notice' => $this->helper->should_plugin_split_notice_shown() ? 1 : 0,
120 + 'hts_close_plugin_split_nonce' => wp_create_nonce( 'hts_close_plugin_split' ),
121 + 'edit_site_url' => $this->helper->get_edit_site_url(),
122 + 'llmstxt_file_url' => $this->llms_txt_file_helper->get_llmstxt_file_url(),
123 + 'llmstxt_file_user_generated' => $this->llms_txt_file_helper->is_user_generated_file(),
124 + 'translations' => array(
113 125 'routes_tools' => __( 'Tools', 'hostinger' ),
114 126 'hostinger_tools_open_guide' => __( 'Open guide', 'hostinger' ),
115 127 'hostinger_tools_preview_site' => __( 'Preview site', 'hostinger' ),
116 128 'hostinger_tools_edit_site' => __( 'Edit site', 'hostinger' ),
@@ -138,14 +150,11 @@
138 150 'hostinger_tools_maintenance' => __( 'Maintenance', 'hostinger' ),
139 151 'hostinger_tools_preview_my_website' => __( 'Preview my website', 'hostinger' ),
140 152 'hostinger_tools_security' => __( 'Security', 'hostinger' ),
141 153 'hostinger_tools_redirects' => __( 'Redirects', 'hostinger' ),
142 - 'hostinger_tools_ai' => __( 'AI Tools', 'hostinger' ),
143 154 'hostinger_tools_llms' => __( 'LLM Optimization', 'hostinger' ),
144 155 'hostinger_tools_enable_llms_txt' => __( 'Create LLMs.txt file', 'hostinger' ),
145 - 'hostinger_tools_llms_txt_description' => __( 'Let AI explore, understand, and interact with your WordPress site.', 'hostinger' ),
146 - 'hostinger_tools_optin_mcp' => __( 'Web2Agent', 'hostinger' ),
147 - 'hostinger_tools_optin_mcp_description' => __( 'Make your website easier for AI tools to understand. Website content updates will be tracked to keep the AI discovery service up to date.', 'hostinger' ),
156 + 'hostinger_tools_llms_txt_description' => __( 'Let AI explore, understand, and interact with your WordPress site', 'hostinger' ),
148 157 'hostinger_tools_llms_txt_learn_more' => __( 'Learn more', 'hostinger' ),
149 158 'hostinger_tools_llms_txt_check_validity' => __( 'Check validity', 'hostinger' ),
150 159 'hostinger_tools_llms_txt_llmstxt' => __( 'LLMS.txt', 'hostinger' ),
151 160 'hostinger_tools_llms_txt_external_file_found' => __( 'An external LLMs.txt file was found. Switching on the toggle will replace it with a new one.', 'hostinger' ),
@@ -154,8 +163,11 @@
154 163 'hostinger_tools_llms_txt_modal_cancel' => __( 'Cancel', 'hostinger' ),
155 164 'hostinger_tools_llms_txt_modal_create_file' => __( 'Create file', 'hostinger' ),
156 165 'hostinger_tools_maintenance_mode' => __( 'Maintenance mode', 'hostinger' ),
157 166 'hostinger_tools_bypass_link' => __( 'Bypass link', 'hostinger' ),
167 + 'hostinger_tools_split_title' => __( 'We’re splitting Hostinger plugin into two: Hostinger Tools and Hostinger Easy Onboarding', 'hostinger' ),
168 + 'hostinger_tools_split_body' => __( 'Hostinger Tools will offer new tools to simplify your site management. And Hostinger Easy Onboarding will guide you through the steps of building a website.', 'hostinger' ),
169 + 'hostinger_tools_split_got_it' => __( 'Got it', 'hostinger' ),
158 170 'xml_security_modal_description' => __( ' Turning on XML-RPC might make your site less secure. Do you want to proceed?', 'hostinger' ),
159 171 'xml_security_modal_title' => __( 'Disclaimer', 'hostinger' ),
160 172 'xml_security_modal_cancel' => __( 'Cancel', 'hostinger' ),
161 173 'xml_security_modal_proceed_anyway' => __( 'Proceed anyway', 'hostinger' ),
@@ -165,20 +177,14 @@
165 177 'bypass_link_reset_modal_reset_link' => __( 'Reset link', 'hostinger' ),
166 178 'bypass_link_reset_success' => __( 'Link has been reset', 'hostinger' ),
167 179 'hostinger_tools_settings_updated' => __( 'Your settings have been updated', 'hostinger' ),
168 180 'hostinger_tools_settings_error' => __( 'It was an error updating your settings', 'hostinger' ),
169 - 'hostinger_tools_mcp_description' => __( 'Let Kodee manage your site on your behalf. This allows Kodee to perform actions like creating pages or updating settings. We will install and pre-configure the WordPress MCP plugin for you.', 'hostinger' ),
170 - 'hostinger_tools_copied_successfully' => __( 'Copied successfully', 'hostinger' ),
171 - 'hostinger_tools_text_copied_successfully' => __( 'Text has been copied successfully', 'hostinger' ),
172 - 'hostinger_tools_free_domain_llm_unavailable' => __( 'LLM optimization features are not available for temporary subdomains. Connect a domain to unlock these features.', 'hostinger' ),
173 - 'hostinger_tools_connect_domain_cta' => __( 'Connect domain', 'hostinger' ),
174 - 'hostinger_tools_copy_agent_url' => __( 'Copy agent url', 'hostinger' ),
175 181 ),
176 - 'rest_base_url' => esc_url_raw( rest_url() ),
177 - 'nonce' => wp_create_nonce( 'wp_rest' ),
178 - 'wp_version' => $wp_version,
179 - 'php_version' => phpversion(),
180 - 'recommended_php_version' => $this->helper->get_recommended_php_version(),
182 + 'rest_base_url' => esc_url_raw( rest_url() ),
183 + 'nonce' => wp_create_nonce( 'wp_rest' ),
184 + 'wp_version' => $wp_version,
185 + 'php_version' => phpversion(),
186 + 'recommended_php_version' => $this->helper->get_recommended_php_version(),
181 187 )
182 188 );
183 189 }
184 190 }