PluginProbe
CartFlows – Funnel Builder & Checkout Plugin for WooCommerce / 1.1.19
CartFlows – Funnel Builder & Checkout Plugin for WooCommerce v1.1.19
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 / includes / admin / cartflows-general.php

cartflows-general.php in CartFlows – Funnel Builder & Checkout Plugin for WooCommerce 1.1.19, at includes/admin/cartflows-general.php

186 lines 6.6 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2 /**
3 * General settings
4 *
5 * @package CartFlows
6 */
7
8 $settings = Cartflows_Helper::get_common_settings();
9
10 $debug_data = Cartflows_Helper::get_debug_settings();
11
12 $debug_on = ( isset( $_GET['debug'] ) ) ? sanitize_text_field( $_GET['debug'] ) : 'false';
13 ?>
14
15
16 <div class="wrap wcf-addon-wrap wcf-clear wcf-container">
17 <input type="hidden" name="action" value="wcf_save_common_settings">
18 <h1 class="screen-reader-text"><?php _e( 'General Settings', 'cartflows' ); ?></h1>
19
20 <div id="poststuff">
21 <div id="post-body" class="columns-2">
22 <div id="post-body-content">
23 <div class="postbox introduction">
24 <h2 class="hndle wcf-normal-cusror ui-sortable-handle">
25 <span><?php _e( 'Getting Started', 'cartflows' ); ?></span>
26 </h2>
27 <div class="inside">
28 <div class="iframe-wrap">
29 <iframe width="560" height="315" src="https://www.youtube.com/embed/SlE0moPKjMY" frameborder="0" allow="accelerometer; autoplay; encrypted-media; gyroscope; picture-in-picture" allowfullscreen></iframe>
30 </div>
31 <p>
32 <?php
33 esc_attr_e( 'Modernizing WordPress eCommerce!', 'cartflows' );
34 ?>
35 </p>
36 </div>
37 </div>
38
39 <div class="general-settings-form postbox">
40 <h2 class="hndle wcf-normal-cusror ui-sortable-handle">
41 <span><?php _e( 'General Settings', 'cartflows' ); ?></span>
42 </h2>
43 <div class="inside">
44 <form method="post" class="wrap wcf-clear" action="" >
45 <div class="form-wrap">
46 <?php
47
48 do_action( 'cartflows_before_settings_fields', $settings );
49
50 echo Cartflows_Admin_Fields::checkobox_field(
51 array(
52 'id' => 'wcf_disallow_indexing',
53 'name' => '_cartflows_common[disallow_indexing]',
54 'title' => __( 'Disallow search engines from indexing flows', 'cartflows' ),
55 'value' => $settings['disallow_indexing'],
56 )
57 );
58
59 echo Cartflows_Admin_Fields::flow_checkout_selection_field(
60 array(
61 'id' => 'wcf_global_checkout',
62 'name' => '_cartflows_common[global_checkout]',
63 'title' => __( 'Global Checkout', 'cartflows' ),
64 'value' => $settings['global_checkout'],
65 )
66 );
67
68 echo Cartflows_Admin_Fields::select_field(
69 array(
70 'id' => 'wcf_default_page_builder',
71 'name' => '_cartflows_common[default_page_builder]',
72 'title' => __( 'Show Templates designed with', 'cartflows' ),
73 'description' => __( 'CartFlows offers flow templates that can be imported in one click. These templates are available in few different page builders. Please choose your preferred page builder from the list so you will only see templates that are made using that page builder..', 'cartflows' ),
74 'value' => $settings['default_page_builder'],
75 'options' => array(
76 'elementor' => __( 'Elementor', 'cartflows' ),
77 'beaver-builder' => __( 'Beaver Builder', 'cartflows' ),
78 'divi' => __( 'Divi', 'cartflows' ),
79 'other' => __( 'Other', 'cartflows' ),
80 ),
81 )
82 );
83
84 do_action( 'cartflows_after_settings_fields', $settings );
85
86 ?>
87 </div>
88 <?php submit_button( __( 'Save Changes', 'cartflows' ), 'cartflows-common-setting-save-btn button-primary button', 'submit', false ); ?>
89 <?php wp_nonce_field( 'cartflows-common-settings', 'cartflows-common-settings-nonce' ); ?>
90 </form>
91 </div>
92 </div>
93 </div>
94 <div class="postbox-container" id="postbox-container-1">
95 <div id="side-sortables">
96
97 <div class="postbox">
98 <h2 class="hndle">
99 <span class="dashicons dashicons-book"></span>
100 <span><?php esc_html_e( 'Knowledge Base', 'cartflows' ); ?></span>
101 </h2>
102 <div class="inside">
103 <p>
104 <?php esc_html_e( 'Not sure how something works? Take a peek at the knowledge base and learn.', 'cartflows' ); ?>
105 </p>
106 <p>
107 <a href="<?php echo esc_url( 'https://cartflows.com/docs' ); ?>" target="_blank" rel="noopener"><?php _e( 'Visit Knowledge Base »', 'cartflows' ); ?></a>
108 </p>
109 </div>
110 </div>
111
112 <div class="postbox">
113 <h2 class="hndle">
114 <span class="dashicons dashicons-groups"></span>
115 <span><?php esc_html_e( 'Community', 'cartflows' ); ?></span>
116 </h2>
117 <div class="inside">
118 <p>
119 <?php esc_html_e( 'Join the community of super helpful CartFlows users. Say hello, ask questions, give feedback and help each other!', 'cartflows' ); ?>
120 </p>
121 <p>
122 <a href="<?php echo esc_url( 'https://www.facebook.com/groups/cartflows/' ); ?>" target="_blank" rel="noopener"><?php _e( 'Join Our Facebook Group »', 'cartflows' ); ?></a>
123 </p>
124 </div>
125 </div>
126
127 <div class="postbox">
128 <h2 class="hndle">
129 <span class="dashicons dashicons-sos"></span>
130 <span><?php esc_html_e( 'Five Star Support', 'cartflows' ); ?></span>
131 </h2>
132 <div class="inside">
133 <p>
134 <?php esc_html_e( 'Got a question? Get in touch with CartFlows developers. We\'re happy to help!', 'cartflows' ); ?>
135 </p>
136 <p>
137 <a href="<?php echo esc_url( 'https://cartflows.com/contact' ); ?>" target="_blank" rel="noopener"><?php _e( 'Submit a Ticket »', 'cartflows' ); ?></a>
138 </p>
139 </div>
140 </div>
141 <?php
142 if ( 'true' == $debug_on ) {
143 ?>
144 <div class="postbox">
145 <h2 class="hndle">
146 <span class="dashicons dashicons-editor-code"></span>
147 <span><?php esc_html_e( 'Load Minified CSS', 'cartflows' ); ?></span>
148 </h2>
149 <div class="inside">
150 <form method="post" class="wrap wcf-clear" action="">
151 <p>
152 <?php esc_html_e( 'Load the Minified CSS from here. Just Enable it by checking the below given checkbox.', 'cartflows' ); ?>
153 </p>
154 <?php
155 echo Cartflows_Admin_Fields::checkobox_field(
156 array(
157 'id' => 'allow_minified_files',
158 'name' => '_cartflows_debug_data[allow_minified_files]',
159 'title' => __( 'Load minified CSS & JS Files', 'cartflows' ),
160 'value' => $debug_data['allow_minified_files'],
161 )
162 );
163 ?>
164 <?php submit_button( __( 'Save', 'cartflows' ), 'button-primary button', 'submit', false ); ?>
165 <?php wp_nonce_field( 'cartflows-debug-settings', 'cartflows-debug-settings-nonce' ); ?>
166 </form>
167 </div>
168 </div>
169 <?php
170 }
171 ?>
172 </div>
173 </div>
174 </div>
175 <!-- /post-body -->
176 <br class="clear">
177 </div>
178 </div>
179
180 <?php
181 /**
182 * Loads Zapier settings admin view.
183 */
184 do_action( 'cartflows_after_general_settings' );
185 ?>
186