PluginProbe
WPFunnels – Funnel Builder for WooCommerce with Checkout & One Click Upsell / 3.13.3
WPFunnels – Funnel Builder for WooCommerce with Checkout & One Click Upsell v3.13.3
3.13.3 3.13.2 3.13.1 3.13.0 3.12.13 3.12.12 3.12.11 3.12.10 3.12.9 3.12.8 3.12.7 3.12.6 3.12.5 3.12.4 3.12.3 3.12.1 3.12.2 3.12.0 3.11.1 3.11.0 3.10.9 3.10.8 3.10.7 3.10.6 2.8.16 All 261 releases
← All changes | admin/modules/template-library/class-manager.php +4 -9 3.12.8 → 3.13.3 View file →
@@ -6,8 +6,9 @@
6 6 */
7 7 namespace WPFunnels\TemplateLibrary;
8 8
9 9 use WPFunnels\Wpfnl;
10 +use WPFunnels\Wpfnl_functions;
10 11
11 12 class Manager
12 13 {
13 14
@@ -100,20 +101,14 @@
100 101 add_action('admin_footer', [$this, 'add_default_view']);
101 102 add_action('admin_enqueue_scripts', [$this, 'enqueue_scripts']);
102 103 }
103 104
105 +
104 106 public function enqueue_scripts($hook)
105 107 {
106 - if (in_array($hook, ['wpfunnels_page_wp_funnels', 'wpfunnels_page_wpf_templates', 'wpfunnels_page_store_checkout'])) {
107 - $funnel_id = 0;
108 - if (isset($_GET['page'])) {
109 - if ($_GET['page'] === 'edit_funnel') {
110 - if (isset($_GET['id'])) {
111 - $funnel_id = sanitize_text_field($_GET['id']);
112 - }
113 - }
114 - }
108 + if (in_array($hook, ['wpfunnels_page_store_checkout'], true)) {
115 109 wp_enqueue_script('funnel-template-library', WPFNL_URL . 'admin/assets/dist/js/template-library.min.js', ['jquery', 'wp-util'], WPFNL_VERSION, true);
110 + Wpfnl_functions::enqueue_bundle_style( 'template-library', 'funnel-template-library-bundle' );
116 111 }
117 112 }
118 113
119 114