PluginProbe
CartFlows – Funnel Builder & Checkout Plugin for WooCommerce / 3.1.4
CartFlows – Funnel Builder & Checkout Plugin for WooCommerce v3.1.4
3.3.0 3.2.1 3.2.0 3.1.4 3.1.3 3.1.2 3.1.1 3.1.0 3.0.1 trunk 1.0.4 1.1.0 1.1.0.1 1.1.1 1.1.10 1.1.11 1.1.12 1.1.13 1.1.14 1.1.15 1.1.16 1.1.17 1.1.18 1.1.19 1.1.2 All 162 releases
cartflows / modules / optin / templates / optin-template-simple.php

optin-template-simple.php in CartFlows – Funnel Builder & Checkout Plugin for WooCommerce 3.1.4, at modules/optin/templates/optin-template-simple.php

39 lines 1001 B
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2 /**
3 * Checkout template
4 *
5 * @package CartFlows
6 */
7
8 // Exit if accessed directly.
9 if ( ! defined( 'ABSPATH' ) ) {
10 exit;
11 }
12 $optin_layout = 'one-column';
13 $fields_skins = wcf()->options->get_optin_meta_value( $optin_id, 'wcf-input-fields-skins' );
14 ?>
15 <div id="wcf-optin-form" class="wcf-optin-form wcf-optin-form-one-column wcf-field-<?php echo esc_attr( $fields_skins ); ?>">
16
17 <!-- CHECKOUT SHORTCODE -->
18 <?php do_action( 'cartflows_optin_before_main_section', $optin_layout ); ?>
19
20 <?php
21
22 $checkout_html = do_shortcode( '[woocommerce_checkout]' );
23
24 if (
25 empty( $checkout_html ) ||
26 trim( $checkout_html ) == '<div class="woocommerce"></div>'
27 ) {
28
29 echo esc_html__( 'Your cart is currently empty.', 'cartflows' );
30 } else {
31 // Ignoring the escaping rule as we are echoing shortcode.
32 echo $checkout_html; // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped
33 }
34 ?>
35
36 <?php do_action( 'cartflows_optin_after_main_section', $optin_layout ); ?>
37 <!-- END CHECKOUT SHORTCODE -->
38 </div>
39