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
wpfunnels / admin / partials / dashboard-nav.php

dashboard-nav.php in WPFunnels – Funnel Builder for WooCommerce with Checkout & One Click Upsell 3.13.3, at admin/partials/dashboard-nav.php

93 lines 3.0 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2 /**
3 * Nav dashboard
4 *
5 * @package
6 */
7 use WPFunnels\Wpfnl_functions;
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 */
14 $nav_menus = apply_filters('wpfnl_dashboard_nav_lists', [
15 'dashboard' => [
16 'title' => __('Dashboard', 'wpfnl'),
17 'icon' => 'dashboard-icon',
18 'page' => WPFNL_MAIN_PAGE_SLUG,
19 ],
20 'overview' => [
21 'title' => __('Funnels', 'wpfnl'),
22 'icon' => 'overview-icon',
23 'page' => WPFNL_MAIN_PAGE_SLUG,
24 'route' => '#/funnels',
25 ],
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'),
38 'icon' => 'settings-icon-2x',
39 'page' => WPFNL_INTEGRATIONS_MAIN_PAGE_SLUG,
40 ],
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,
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.
54 ]);
55 ?>
56
57 <ul class="wpfnl-dashboard__nav-ul">
58 <li class="logo">
59 <?php require_once WPFNL_DIR . '/admin/partials/icons/logo.php'; ?>
60 </li>
61
62 <?php
63 foreach ($nav_menus as $key => $menu) {
64 $is_active = Wpfnl_functions::define_active_class($key);
65 $active_class = $is_active ? 'active' : '';
66 $link = add_query_arg(
67 [
68 'page' => $menu['page'],
69 ],
70 admin_url('admin.php')
71 );
72
73 if (!empty($menu['route'])) {
74 $link .= $menu['route'];
75 }
76
77 if($key === 'create_funnel') $link='#'; ?>
78
79 <li class="wpfnl-dashboard__nav-li <?php echo $key .' '. $active_class; ?>">
80 <a id="<?php echo "wpfnl-tab-".$key ?>" href="<?php echo esc_url($link); ?>">
81 <?php echo $menu['title']; ?>
82 </a>
83 </li>
84 <?php
85 }
86 ?>
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>
93