PluginProbe
CartFlows – Funnel Builder & Checkout Plugin for WooCommerce / 1.1.10
CartFlows – Funnel Builder & Checkout Plugin for WooCommerce v1.1.10
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 / classes / class-cartflows-meta.php

class-cartflows-meta.php in CartFlows – Funnel Builder & Checkout Plugin for WooCommerce 1.1.10, at classes/class-cartflows-meta.php

76 lines 1.7 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2 /**
3 * CartFlows Meta
4 *
5 * @package CartFlows
6 * @since 1.0.0
7 */
8
9 if ( ! class_exists( 'Cartflows_Meta' ) ) :
10
11 /**
12 * CartFlows_Meta
13 *
14 * @since 1.0.0
15 */
16 class Cartflows_Meta {
17 /**
18 * Constructor
19 *
20 * @since 1.0.0
21 */
22 public function __construct() {
23 }
24
25 /**
26 * Flow & Step Actions
27 *
28 * @param array $options options.
29 * @param int $post_id post ID.
30 */
31 function right_column_footer( $options, $post_id ) {
32 ?>
33 <div class="wcf-column-right-footer">
34 <?php submit_button( __( 'Update', 'cartflows' ), 'primary', 'save', false ); ?>
35
36 <?php
37 $flow_id = get_post_meta( $post_id, 'wcf-flow-id', true );
38 if ( $flow_id ) {
39 ?>
40 <a href="<?php echo esc_url( get_edit_post_link( $flow_id ) ); ?>" class="button pull-right wcf-back-to-flow-edit">
41 <i class="dashicons dashicons-arrow-left-alt"></i>
42 <?php _e( 'Back to edit Flow', 'cartflows' ); ?>
43 </a>
44 <?php } ?>
45
46 </div>
47 <?php
48 }
49
50 /**
51 * Script Header (Used for add script into header)
52 *
53 * @param array $options options.
54 * @param int $post_id post ID.
55 */
56 function tab_custom_script( $options, $post_id ) {
57 ?>
58 <div class="wcf-<?php echo wcf()->utils->get_step_type( $post_id ); ?>-custom-script-header wcf-tab-content widefat">
59 <?php
60 /* Script added onto the header */
61 echo wcf()->meta->get_area_field(
62 array(
63 'label' => __( 'Custom Script', 'cartflows' ),
64 'name' => 'wcf-custom-script',
65 'value' => htmlspecialchars( $options['wcf-custom-script'] ),
66 'help' => __( 'Custom script lets you add your own custom script on front end of this flow page.', 'cartflows' ),
67 )
68 );
69 ?>
70 </div>
71 <?php
72 }
73 }
74
75 endif;
76