| @@ -6,9 +6,8 @@ | ||
| 6 | 6 | use ShopEngine\Core\Builders\Base; |
| 7 | 7 | use ShopEngine\Core\Query_Modifier; |
| 8 | 8 | use ShopEngine\Core\Template_Cpt; |
| 9 | 9 | use ShopEngine\Libs\License\License_Route; |
| 10 | -use ShopEngine\Libs\Rating\Rating; | |
| 11 | 10 | use ShopEngine\Libs\Updater\Init as Updater; |
| 12 | 11 | use ShopEngine\Modules\Manifest as Module_Manifest; |
| 13 | 12 | use ShopEngine\Widgets\Manifest; |
| 14 | 13 | |
| @@ -74,14 +73,12 @@ | ||
| 74 | 73 | |
| 75 | 74 | if($error) { |
| 76 | 75 | return; |
| 77 | 76 | } |
| 78 | - | |
| 77 | + | |
| 79 | 78 | add_filter("plugin_action_links_shopengine/shopengine.php", function ($links) { |
| 80 | - $free = esc_html__("Go To Shopengine","shopengine"); | |
| 81 | - $pro = esc_html__("Go To ShopenginePro","shopengine"); | |
| 82 | 79 | |
| 83 | - $custom_links[] = '<a title="' . $free . '" href="'.admin_url('edit.php?post_type=shopengine-template#getting-started').'" target="_blank">' . esc_html__('Settings', 'shopengine') . '</a>'; | |
| 80 | + $custom_links[] = '<a href="'.admin_url('edit.php?post_type=shopengine-template#getting-started').'" target="_blank">' . esc_html__('Settings', 'shopengine') . '</a>'; | |
| 84 | 81 | |
| 85 | 82 | foreach ($custom_links as $custom_link): |
| 86 | 83 | array_unshift($links, $custom_link); |
| 87 | 84 | endforeach; |
| @@ -86,9 +83,9 @@ | ||
| 86 | 83 | array_unshift($links, $custom_link); |
| 87 | 84 | endforeach; |
| 88 | 85 | |
| 89 | 86 | if (!is_plugin_active('shopengine-pro/shopengine-pro.php')) { |
| 90 | - $links[] = '<a title="' . $pro . '" href="https://wpmet.com/plugin/shopengine/pricing/" style="color:#FCB214;font-weight:700" target="_blank">' . esc_html__('Go Pro', 'shopengine') . '</a>'; | |
| 87 | + $links[] = '<a href="https://wpmet.com/plugin/shopengine/pricing/" style="color:#FCB214;font-weight:700" target="_blank">' . esc_html__('Go Pro', 'shopengine') . '</a>'; | |
| 91 | 88 | } |
| 92 | 89 | return $links; |
| 93 | 90 | }); |
| 94 | 91 | |
| @@ -171,19 +168,12 @@ | ||
| 171 | 168 | add_theme_support('wc-product-gallery-lightbox'); |
| 172 | 169 | add_theme_support('wc-product-gallery-slider'); |
| 173 | 170 | } |
| 174 | 171 | |
| 172 | + | |
| 175 | 173 | #Registering new post-type & etc |
| 176 | 174 | Base::instance()->init(); |
| 177 | 175 | |
| 178 | - Rating::instance('shopengine') | |
| 179 | - ->set_plugin( 'ShopEngine', 'https://wpmet.com/wordpress.org/rating/shopengine' ) | |
| 180 | - ->set_plugin_logo( 'https://ps.w.org/shopengine/assets/icon-256x256.gif?rev=2505061', 'width:150px !important' ) | |
| 181 | - ->set_priority( 10 ) | |
| 182 | - ->set_first_appear_day( 7 ) | |
| 183 | - ->set_condition( true ) | |
| 184 | - ->call(); | |
| 185 | - | |
| 186 | 176 | \ShopEngine\Core\Settings\Base::instance()->init(); |
| 187 | 177 | |
| 188 | 178 | new Libs\Select_Api\Base(); |
| 189 | 179 | |
| @@ -290,10 +280,12 @@ | ||
| 290 | 280 | * Include public function |
| 291 | 281 | * |
| 292 | 282 | * @since 1.0.0 |
| 293 | 283 | */ |
| 294 | - public function js_css_public() { | |
| 295 | - wp_register_style('shopengine-public', \ShopEngine::plugin_url() . 'assets/css/shopengine-public.css', false, \ShopEngine::version()); | |
| 284 | + public function js_css_public() { | |
| 285 | + wp_enqueue_style('shopengine-icon', \ShopEngine::plugin_url() . 'assets/css/shopengine-icon.css', false, \ShopEngine::version()); | |
| 286 | + wp_enqueue_style('shopengine-simple-scrollbar-css', \ShopEngine::plugin_url() . 'assets/css/simple-scrollbar.css', false, \ShopEngine::version()); | |
| 287 | + wp_enqueue_style('shopengine-public-css', \ShopEngine::plugin_url() . 'assets/css/public-style.css', false, \ShopEngine::version()); | |
| 296 | 288 | |
| 297 | 289 | // Modal Stylesheet |
| 298 | 290 | wp_register_style('shopengine-modal-styles', \ShopEngine::plugin_url() . 'assets/css/shopengine-modal.css', false, \ShopEngine::version()); |
| 299 | 291 | |