| 1 |
<?php |
| 2 |
/** |
| 3 |
* View landing |
| 4 |
* |
| 5 |
* @package |
| 6 |
*/ |
| 7 |
|
| 8 |
$settings_link = add_query_arg( |
| 9 |
[ |
| 10 |
'page' => WPFNL_EDIT_FUNNEL_SLUG, |
| 11 |
'id' => $this->step->get_funnel_id(), |
| 12 |
'step_id' => $this->step->get_id(), |
| 13 |
'show_settings' => 1, |
| 14 |
], |
| 15 |
admin_url('admin.php') |
| 16 |
); |
| 17 |
|
| 18 |
$id = $this->get_id(); |
| 19 |
$title = get_the_title($id); |
| 20 |
$link = get_the_permalink($id); |
| 21 |
?> |
| 22 |
|
| 23 |
|
| 24 |
<div id="step-landing" class="wpfnl-single-step__content"> |
| 25 |
<?php require WPFNL_DIR . '/admin/modules/steps/general/step-title.php'; ?> |
| 26 |
<!-- /steps-page__content-title-wrapper --> |
| 27 |
|
| 28 |
<div class="steps-content_boxs-wrapper"> |
| 29 |
<div class="steps-box"> |
| 30 |
<?php require WPFNL_DIR . '/admin/partials/icons/cart-icon.php'; ?> |
| 31 |
<span class="step-page-title"><?php echo __('Landing page', 'wpfnl'); ?></span> |
| 32 |
<?php |
| 33 |
$post_edit_link = get_edit_post_link($id); |
| 34 |
$builder = get_option('_wpfunnels_general_settings'); |
| 35 |
if (isset($builder['builder']) && $builder['builder'] == 'elementor') { |
| 36 |
$post_edit_link = home_url() . '/wp-admin/post.php?post=' . $id . '&action=elementor'; |
| 37 |
} |
| 38 |
?> |
| 39 |
<div class="actions-area"> |
| 40 |
<a href="<?php echo $post_edit_link; ?>" title="Edit" target="_blank" class="btn-default step-edit"> |
| 41 |
<?php require WPFNL_DIR . '/admin/partials/icons/edit-icon.php'; ?> |
| 42 |
<?php echo __('Edit', 'wpfnl'); ?> |
| 43 |
</a> |
| 44 |
<a href="<?php echo $link; ?>" target="_blank" title="Preview" class="single-action step-preview"> |
| 45 |
<?php require WPFNL_DIR . '/admin/partials/icons/eye-icon.php'; ?> |
| 46 |
</a> |
| 47 |
<!-- <a href="#" title="Duplicate" class="single-action step-duplicate"> |
| 48 |
<?php //require WPFNL_DIR . '/admin/partials/icons/duplicate-icon.php';?> |
| 49 |
</a> |
| 50 |
<a href="#" title="AB Testing" class="single-action step-ab-testing"> |
| 51 |
<?php //require WPFNL_DIR . '/admin/partials/icons/ab-testing-icon.php';?> |
| 52 |
</a> --> |
| 53 |
<a href="#" title="Delete" class="single-action step-delete" id="wpfnl-delete-step" data-id="<?php echo $id; ?>"> |
| 54 |
<?php require WPFNL_DIR . '/admin/partials/icons/delete-icon.php'; ?> |
| 55 |
</a> |
| 56 |
<!-- <a href="<?php echo $settings_link; ?>" title="Settings" class="single-action step-settings"> |
| 57 |
<?php //require WPFNL_DIR . '/admin/partials/icons/settings-icon.php';?> |
| 58 |
</a> --> |
| 59 |
</div> |
| 60 |
</div> |
| 61 |
|
| 62 |
<div class="steps-box create-vairation"> |
| 63 |
<?php require WPFNL_DIR . '/admin/partials/icons/funnel-icon-xl.php'; ?> |
| 64 |
<span class="no-product-tag coming-soon-tag"><?php echo __('Coming Soon', 'wpfnl'); ?></span> |
| 65 |
<span class="step-page-title"><?php echo __('Start Split Test', 'wpfnl'); ?></span> |
| 66 |
|
| 67 |
<div class="actions-area"> |
| 68 |
<a href="" title="Create Variations" class="btn-default add-variation"> |
| 69 |
<?php require WPFNL_DIR . '/admin/partials/icons/plus-icon.php'; ?> |
| 70 |
<?php echo __('Create Variations', 'wpfnl'); ?> |
| 71 |
</a> |
| 72 |
<span class="helper-text"><?php echo __('Optimize your lead and sales with split tests', 'wpfnl'); ?></span> |
| 73 |
</div> |
| 74 |
</div> |
| 75 |
<!-- /steps box --> |
| 76 |
|
| 77 |
</div> |
| 78 |
|
| 79 |
</div> |
| 80 |
<!-- /#step-landing --> |
| 81 |
|