# wpfunnels/trunk/admin/modules/funnel/views/view.php

WPFunnels – Funnel Builder for WooCommerce with Checkout &amp; One Click Upsell, version trunk. 45 lines.

- Page: https://pluginprobe.com/plugins/wpfunnels/trunk/code/admin/modules/funnel/views/view.php
- Raw: https://pluginprobe.com/plugins/wpfunnels/trunk/raw/admin/modules/funnel/views/view.php
- Modified: 2023-07-07T10:30:38+00:00

Line numbers below start at 1. Link to a line or a range by appending a fragment to the
page URL, for example `https://pluginprobe.com/plugins/wpfunnels/trunk/code/admin/modules/funnel/views/view.php#L10-L20`.

```php
<?php
/**
 * View a funnel in funnel lists
 * 
 * @package
 */

$show_settings = filter_input(INPUT_GET, 'show_settings', FILTER_SANITIZE_SPECIAL_CHARS);

if ($show_settings == 1) {
    $back_link = add_query_arg(
        [
            'page'      => WPFNL_EDIT_FUNNEL_SLUG,
            'id'        => $this->funnel->get_id(),
            'step_id'   => $this->step_module->get_id(),
        ],
        admin_url('admin.php')
    );
} else {
    $back_link = add_query_arg(
        [
            'page'      => WPFNL_MAIN_PAGE_SLUG,
        ],
        admin_url('admin.php')
    );
}



$active_funnel_id = $this->funnel->get_id();
$step_names = apply_filters('wpfunnels_steps', [
    'landing'       => __('Landing', 'wpfnl'),
    'thankyou'      => __('Thank You', 'wpfnl'),
    'checkout'      => __('Checkout', 'wpfnl'),
    'upsell'        => __('Upsell', 'wpfnl'),
    'downsell'      => __('Downsell', 'wpfnl'),
]);

?>

<div id="wpfnl-root-extra" class="wpfnl"></div>
<div id="wpfnl-root" class="wpfnl"></div>
<!-- <div id="email-builder" class="wpfnl" style="display:none">gfd</div> -->
<!-- /.wpfnl -->

```
