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 / steps / general / step-title.php

step-title.php in WPFunnels – Funnel Builder for WooCommerce with Checkout & One Click Upsell trunk, at admin/modules/steps/general/step-title.php

62 lines 2.8 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2 /**
3 * Step title
4 *
5 * @package
6 */
7
8 $is_step_settings = isset($_GET["show_settings"]);
9 $title = $this->step->get_title();
10 $type = $this->step->get_type();
11
12 if ($title == 'thankyou') {
13 $title = 'Thank You';
14 }
15 ?>
16
17 <div class="steps-page__content-title-wrapper">
18 <div class="title-area">
19 <form action="#">
20 <input type="text" id="<?php echo 'step-name-input-'.$this->get_id(); ?>" name="step-name" value="<?php echo $this->step->get_title(); ?>" class="step-name-input" placeholder="Write Step Name" />
21 <h1 class="step-name"><?php echo $title; ?></h1>
22 <span class="type"> <?php echo '('.$type.')'; ?></span>
23
24 <div class="btn-area">
25 <button type="button" class="step-name-edit">
26 <svg width="18" height="18" fill="#7A8B9A" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" role="img" aria-hidden="true" focusable="false">
27 <path d="M20.1 5.1L16.9 2 6.2 12.7l-1.3 4.4 4.5-1.3L20.1 5.1zM4 20.8h8v-1.5H4v1.5z"></path>
28 </svg>
29 </button>
30 <button data-id="<?php echo $this->get_id(); ?>" type="submit" class="step-name-update">
31 <svg xmlns="http://www.w3.org/2000/svg" class="icon icon-tabler icon-tabler-check" width="18" height="18" viewBox="0 0 24 17" stroke-width="3" stroke="#7A8B9A" fill="none" stroke-linecap="round" stroke-linejoin="round">
32 <path stroke="none" d="M0 0h24v24H0z" fill="none"></path>
33 <path d="M5 12l5 5l10 -10"></path>
34 </svg>
35 </button>
36 <button type="submit" class="step-name-noupdate">
37 <svg width="12" height="12" viewBox="0 0 12 12" fill="none" xmlns="http://www.w3.org/2000/svg">
38 <path d="M11.1667 1.72266L1.72223 11.1671" stroke="#6E42D3" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/>
39 <path d="M1.72223 1.72266L11.1667 11.1671" stroke="#6E42D3" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/>
40 </svg>
41 </button>
42 </div>
43
44 </form>
45 </div>
46
47 <?php if (1 == $is_step_settings) { ?>
48 <div class="edit-button">
49 <?php
50 $post_edit_link = get_edit_post_link($this->get_id());
51 $builder = get_option('_wpfunnels_general_settings');
52 if (isset($builder['builder']) && $builder['builder'] == 'elementor') {
53 $post_edit_link = home_url() . '/wp-admin/post.php?post=' . $this->get_id() . '&action=elementor';
54 }
55 ?>
56 <a href="<?php echo $post_edit_link; ?>" target="_blank" class="btn-default edit-wp-page">
57 <?php echo __('Edit', 'wpfnl'); ?>
58 </a>
59 </div>
60 <?php } ?>
61 </div>
62