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/partials/dashboard-nav.php +48 -28 2.8.16 → 3.13.3 View file →
@@ -1,46 +1,58 @@
1 1 <?php
2 2 /**
3 3 * Nav dashboard
4 - *
4 + *
5 5 * @package
6 6 */
7 7 use WPFunnels\Wpfnl_functions;
8 8
9 +/*
10 + * `route` is for the screens that live in the React admin: they are all one
11 + * WordPress page with the screen in the hash, so a plain `page` would only
12 + * reach the dashboard. The entries without one are still their own page.
13 + */
9 14 $nav_menus = apply_filters('wpfnl_dashboard_nav_lists', [
10 - // 'dashboard' => [
11 - // 'title' => __('Dashboard', 'wpfnl'),
12 - // 'icon' => 'dashboard-icon',
13 - // 'page' => WPFNL_MAIN_PAGE_SLUG,
14 - // ],
15 -
15 + 'dashboard' => [
16 + 'title' => __('Dashboard', 'wpfnl'),
17 + 'icon' => 'dashboard-icon',
18 + 'page' => WPFNL_MAIN_PAGE_SLUG,
19 + ],
16 20 'overview' => [
17 21 'title' => __('Funnels', 'wpfnl'),
18 22 'icon' => 'overview-icon',
19 23 'page' => WPFNL_MAIN_PAGE_SLUG,
24 + 'route' => '#/funnels',
20 25 ],
21 - // 'create_funnel' => [
22 - // 'title' => __('Create Funnel', 'wpfnl'),
23 - // 'icon' => 'funnel-icon',
24 - // 'page' => WPFNL_CREATE_FUNNEL_SLUG,
25 - // ],
26 - // 'report' => [
27 - // 'title' => __('Report', 'wpfnl'),
28 - // 'icon' => 'graph-icon',
29 - // 'page' => WPFNL_MAIN_PAGE_SLUG,
30 - // ],
31 - 'settings' => [
32 - 'title' => __('Settings', 'wpfnl'),
26 + 'store_checkout' => [
27 + 'title' => __('Store Checkout', 'wpfnl'),
28 + 'icon' => 'storewide-checkout-icon',
29 + 'page' => 'store_checkout',
30 + ],
31 + 'automations' => [
32 + 'title' => __('Automations', 'wpfnl'),
33 + 'icon' => 'automations-icon',
34 + 'page' => WPFNL_AUTOMATIONS_SLUG,
35 + ],
36 + 'integrations' => [
37 + 'title' => __('Integrations', 'wpfnl'),
33 38 'icon' => 'settings-icon-2x',
34 - 'page' => WPFNL_GLOBAL_SETTINGS_SLUG,
39 + 'page' => WPFNL_INTEGRATIONS_MAIN_PAGE_SLUG,
35 40 ],
36 - // 'documentation' => [
37 - // 'title' => __('Documentation', 'wpfnl'),
38 - // 'icon' => 'doc-icon',
39 - // 'page' => WPFNL_MAIN_PAGE_SLUG,
41 + 'templates' => [
42 + 'title' => __('Templates', 'wpfnl'),
43 + 'icon' => 'templates-icon',
44 + 'page' => WPFNL_MAIN_PAGE_SLUG,
45 + 'route' => '#/funnel-templates',
46 + ],
47 + // 'addons' => [
48 + // 'title' => __('Add-ons', 'wpfnl'),
49 + // 'icon' => 'addons-icon',
50 + // 'page' => WPFNL_ADDONS_SLUG,
40 51 // ],
52 + // Settings is not listed here — it is reached from the gear button in
53 + // the header action group rendered into #wpfnl-header-actions below.
41 54 ]);
42 -
43 55 ?>
44 56
45 57 <ul class="wpfnl-dashboard__nav-ul">
46 58 <li class="logo">
@@ -56,14 +68,17 @@
56 68 'page' => $menu['page'],
57 69 ],
58 70 admin_url('admin.php')
59 71 );
60 - if($key === 'create_funnel') $link='#';
61 - ?>
62 72
73 + if (!empty($menu['route'])) {
74 + $link .= $menu['route'];
75 + }
76 +
77 + if($key === 'create_funnel') $link='#'; ?>
78 +
63 79 <li class="wpfnl-dashboard__nav-li <?php echo $key .' '. $active_class; ?>">
64 80 <a id="<?php echo "wpfnl-tab-".$key ?>" href="<?php echo esc_url($link); ?>">
65 - <?php include WPFNL_DIR . '/admin/partials/icons/'.$menu['icon'].'.php'; ?>
66 81 <?php echo $menu['title']; ?>
67 82 </a>
68 83 </li>
69 84 <?php
@@ -69,4 +84,9 @@
69 84 <?php
70 85 }
71 86 ?>
72 87 </ul>
88 +
89 +<!-- Header action group (Knowledge Base, AI Assistant, Settings, Upgrade).
90 + Rendered by admin/src/global-ai-drawer/HeaderActions.vue so every page
91 + that includes this nav gets the same right-hand controls. -->
92 +<div id="wpfnl-header-actions" class="wpfnl-dashboard__nav-right"></div>