| @@ -3,9 +3,8 @@ | ||
| 3 | 3 | namespace ShopEngine; |
| 4 | 4 | |
| 5 | 5 | use ShopEngine\Compatibility\Conflicts\Manifest as Conflict_Manifest; |
| 6 | 6 | use ShopEngine\Core\Builders\Base; |
| 7 | -use ShopEngine\Compatibility\Migrations\LangMigration; | |
| 8 | 7 | use ShopEngine\Core\Query_Modifier; |
| 9 | 8 | use ShopEngine\Core\Template_Cpt; |
| 10 | 9 | use ShopEngine\Libs\License\License_Route; |
| 11 | 10 | use ShopEngine\Libs\Rating\Rating; |
| @@ -75,14 +74,12 @@ | ||
| 75 | 74 | |
| 76 | 75 | if($error) { |
| 77 | 76 | return; |
| 78 | 77 | } |
| 79 | - | |
| 78 | + | |
| 80 | 79 | add_filter("plugin_action_links_shopengine/shopengine.php", function ($links) { |
| 81 | - $free = esc_html__("Go To Shopengine","shopengine"); | |
| 82 | - $pro = esc_html__("Go To ShopenginePro","shopengine"); | |
| 83 | 80 | |
| 84 | - $custom_links[] = '<a title="' . $free . '" href="'.admin_url('edit.php?post_type=shopengine-template#getting-started').'" target="_blank">' . esc_html__('Settings', 'shopengine') . '</a>'; | |
| 81 | + $custom_links[] = '<a href="'.admin_url('edit.php?post_type=shopengine-template#getting-started').'" target="_blank">' . esc_html__('Settings', 'shopengine') . '</a>'; | |
| 85 | 82 | |
| 86 | 83 | foreach ($custom_links as $custom_link): |
| 87 | 84 | array_unshift($links, $custom_link); |
| 88 | 85 | endforeach; |
| @@ -87,9 +84,9 @@ | ||
| 87 | 84 | array_unshift($links, $custom_link); |
| 88 | 85 | endforeach; |
| 89 | 86 | |
| 90 | 87 | if (!is_plugin_active('shopengine-pro/shopengine-pro.php')) { |
| 91 | - $links[] = '<a title="' . $pro . '" href="https://wpmet.com/plugin/shopengine/pricing/" style="color:#FCB214;font-weight:700" target="_blank" rel="noopener">' . esc_html__('Go Pro', 'shopengine') . '</a>'; | |
| 88 | + $links[] = '<a href="https://wpmet.com/plugin/shopengine/pricing/" style="color:#FCB214;font-weight:700" target="_blank">' . esc_html__('Go Pro', 'shopengine') . '</a>'; | |
| 92 | 89 | } |
| 93 | 90 | return $links; |
| 94 | 91 | }); |
| 95 | 92 | |
| @@ -138,13 +135,8 @@ | ||
| 138 | 135 | wp_safe_redirect($url); |
| 139 | 136 | exit; |
| 140 | 137 | } |
| 141 | 138 | } |
| 142 | - | |
| 143 | - /** | |
| 144 | - * migrate data | |
| 145 | - */ | |
| 146 | - LangMigration::instance()->init(); | |
| 147 | 139 | }); |
| 148 | 140 | |
| 149 | 141 | // avoid themes for loading woocommerce functions |
| 150 | 142 | $avoid_themes = ['avada', 'avada child']; |
| @@ -188,10 +180,8 @@ | ||
| 188 | 180 | ->set_first_appear_day( 7 ) |
| 189 | 181 | ->set_condition( true ) |
| 190 | 182 | ->call(); |
| 191 | 183 | |
| 192 | - \ShopEngine\Core\MultiLanguage\Language::instance()->init(); | |
| 193 | - | |
| 194 | 184 | \ShopEngine\Core\Settings\Base::instance()->init(); |
| 195 | 185 | |
| 196 | 186 | new Libs\Select_Api\Base(); |
| 197 | 187 | |
| @@ -208,9 +198,9 @@ | ||
| 208 | 198 | add_action('get_header', [$this, 'shopengine_track_product_views']); |
| 209 | 199 | |
| 210 | 200 | // database migrations |
| 211 | 201 | // (new \ShopEngine\Compatibility\Migrations\Migration())->init(); |
| 212 | - // (new \ShopEngine\Compatibility\Migrations\Temp_Migration())->init(); | |
| 202 | + (new \ShopEngine\Compatibility\Migrations\Temp_Migration())->init(); | |
| 213 | 203 | |
| 214 | 204 | |
| 215 | 205 | // call service providers |
| 216 | 206 | |
| @@ -224,8 +214,10 @@ | ||
| 224 | 214 | } |
| 225 | 215 | |
| 226 | 216 | } |
| 227 | 217 | |
| 218 | + | |
| 219 | + | |
| 228 | 220 | add_filter('script_loader_tag', [$this, 'filter_load_type'], 99, 3); |
| 229 | 221 | } |
| 230 | 222 | |
| 231 | 223 | |
| @@ -296,10 +288,12 @@ | ||
| 296 | 288 | * Include public function |
| 297 | 289 | * |
| 298 | 290 | * @since 1.0.0 |
| 299 | 291 | */ |
| 300 | - public function js_css_public() { | |
| 301 | - wp_register_style('shopengine-public', \ShopEngine::plugin_url() . 'assets/css/shopengine-public.css', false, \ShopEngine::version()); | |
| 292 | + public function js_css_public() { | |
| 293 | + wp_enqueue_style('shopengine-icon', \ShopEngine::plugin_url() . 'assets/css/shopengine-icon.css', false, \ShopEngine::version()); | |
| 294 | + wp_enqueue_style('shopengine-simple-scrollbar-css', \ShopEngine::plugin_url() . 'assets/css/simple-scrollbar.css', false, \ShopEngine::version()); | |
| 295 | + wp_enqueue_style('shopengine-public-css', \ShopEngine::plugin_url() . 'assets/css/public-style.css', false, \ShopEngine::version()); | |
| 302 | 296 | |
| 303 | 297 | // Modal Stylesheet |
| 304 | 298 | wp_register_style('shopengine-modal-styles', \ShopEngine::plugin_url() . 'assets/css/shopengine-modal.css', false, \ShopEngine::version()); |
| 305 | 299 | |