PluginProbe
WPFunnels – Funnel Builder for WooCommerce with Checkout & One Click Upsell / trunk
WPFunnels – Funnel Builder for WooCommerce with Checkout & One Click Upsell vtrunk
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 2.8.17 2.8.18 All 259 releases
wpfunnels / admin / modules / settings / views / permalink-settings.php

permalink-settings.php in WPFunnels – Funnel Builder for WooCommerce with Checkout & One Click Upsell trunk, at admin/modules/settings/views/permalink-settings.php

75 lines 3.6 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2 /**
3 * View permalink settings
4 *
5 * @package
6 */
7 ?>
8 <div class="settings-tab-container">
9 <ul class="wpfnl-general-settings-tab-nav">
10 <li class="inner-tab active" data-tab="tab-permalink-preference"><?php esc_html_e('Preference Link', 'wpfnl'); ?></li>
11 <li class="inner-tab" data-tab="tab-permalink-base"><?php esc_html_e('Post Type Permalink Base', 'wpfnl'); ?></li>
12 </ul>
13 </div>
14
15 <div class="wpfnl-tab-content active" id="tab-permalink-preference">
16 <div class="wpfnl-field-wrapper">
17 <div class="wpfnl-all-fields">
18 <?php
19 $structures = [
20 'default' => __('Default Permalink', 'wpfnl'),
21 'funnel-step' => __('Funnel and Step Slug', 'wpfnl'),
22 'funnel' => __('Funnel Slug', 'wpfnl'),
23 'step' => __('Step Slug', 'wpfnl')
24 ];
25 foreach ($structures as $slug => $label_title) :
26 $id = $slug . '-permalink';
27 ?>
28 <div class="wpfnl-fields">
29 <div class="wpfnl-radiobtn">
30 <input type="radio" name="wpfunnels-set-permalink" id="<?php echo esc_attr($id); ?>" value="<?php echo esc_attr($slug); ?>" <?php checked($this->permalink_settings['structure'], $slug); ?> />
31 <label for="<?php echo esc_attr($id); ?>">
32 <span class="label-title"><?php echo esc_html($label_title); ?></span>
33 <span class="label-subheading">
34 <?php
35 switch ($slug) {
36 case 'default':
37 esc_html_e('Default WordPress Permalink', 'wpfnl');
38 break;
39 case 'funnel-step':
40 echo home_url(); ?>/<?php echo '<code class="funnelbase"></code>/%funnelname%/<code class="stepbase"></code>/%stepname%/';
41 break;
42 case 'funnel':
43 echo home_url(); ?>/<?php echo '<code class="funnelbase"></code>/%funnelname%/%stepname%/';
44 break;
45 case 'step':
46 echo home_url(); ?>/%funnelname%/<?php echo '<code class="stepbase"></code>/%stepname%/';
47 break;
48 }
49 ?>
50 </span>
51 </label>
52 </div>
53 </div>
54 <?php endforeach; ?>
55 </div>
56 </div>
57 </div>
58
59 <div class="wpfnl-tab-content" id="tab-permalink-base">
60 <div class="wpfnl-field-wrapper parmalink-base">
61 <div class="wpfnl-parmalink-inputs-wrapper">
62 <div class="wpfnl-fields">
63 <label><?php esc_html_e('Funnel Base', 'wpfnl'); ?></label>
64 <input type="text" name="wpfnl-permalink-funnel-base" id="wpfunnels-permalink-funnel-base" value="<?php echo sanitize_text_field($this->permalink_settings['funnel_base']); ?>" />
65 </div>
66
67 <div class="wpfnl-fields">
68 <label><?php esc_html_e('Step Base', 'wpfnl'); ?></label>
69 <input type="text" name="wpfnl-permalink-step-base" id="wpfunnels-permalink-step-base" value="<?php echo sanitize_text_field($this->permalink_settings['step_base']); ?>" />
70 </div>
71 </div>
72 </div>
73 </div>
74 <!-- /settings-box -->
75