| 1 |
<?php |
| 2 |
/** |
| 3 |
* General settings |
| 4 |
* |
| 5 |
* @package CartFlows |
| 6 |
*/ |
| 7 |
|
| 8 |
$settings = Cartflows_Helper::get_common_settings(); |
| 9 |
|
| 10 |
?> |
| 11 |
|
| 12 |
<form method="post" class="wrap wcf-clear" action="" > |
| 13 |
<div class="wrap wcf-addon-wrap wcf-clear wcf-container"> |
| 14 |
<input type="hidden" name="action" value="wcf_save_common_settings"> |
| 15 |
<h1 class="screen-reader-text"><?php _e( 'General Settings', 'cartflows' ); ?></h1> |
| 16 |
|
| 17 |
<div id="poststuff"> |
| 18 |
<div id="post-body" class="columns-2"> |
| 19 |
<div id="post-body-content"> |
| 20 |
<div class="postbox introduction"> |
| 21 |
<h2 class="hndle wcf-normal-cusror ui-sortable-handle"> |
| 22 |
<span><?php _e( 'Getting Started', 'cartflows' ); ?></span> |
| 23 |
</h2> |
| 24 |
<div class="inside"> |
| 25 |
<div class="iframe-wrap"> |
| 26 |
<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> |
| 27 |
</div> |
| 28 |
<p> |
| 29 |
<?php |
| 30 |
esc_attr_e( 'Modernizing WordPress eCommerce!', 'cartflows' ); |
| 31 |
?> |
| 32 |
</p> |
| 33 |
</div> |
| 34 |
</div> |
| 35 |
|
| 36 |
<div class="general-settings-form postbox"> |
| 37 |
<h2 class="hndle wcf-normal-cusror ui-sortable-handle"> |
| 38 |
<span><?php _e( 'General Settings', 'cartflows' ); ?></span> |
| 39 |
</h2> |
| 40 |
<div class="inside"> |
| 41 |
<div class="form-wrap"> |
| 42 |
<?php |
| 43 |
|
| 44 |
do_action( 'cartflows_before_settings_fields', $settings ); |
| 45 |
|
| 46 |
echo Cartflows_Admin_Fields::checkobox_field( |
| 47 |
array( |
| 48 |
'id' => 'wcf_disallow_indexing', |
| 49 |
'name' => '_cartflows_common[disallow_indexing]', |
| 50 |
'title' => __( 'Disallow search engines from indexing flows', 'cartflows' ), |
| 51 |
'value' => $settings['disallow_indexing'], |
| 52 |
) |
| 53 |
); |
| 54 |
echo Cartflows_Admin_Fields::flow_checkout_selection_field( |
| 55 |
array( |
| 56 |
'id' => 'wcf_global_checkout', |
| 57 |
'name' => '_cartflows_common[global_checkout]', |
| 58 |
'title' => __( 'Global Checkout', 'cartflows' ), |
| 59 |
'value' => $settings['global_checkout'], |
| 60 |
) |
| 61 |
); |
| 62 |
|
| 63 |
echo Cartflows_Admin_Fields::select_field( |
| 64 |
array( |
| 65 |
'id' => 'wcf_default_page_builder', |
| 66 |
'name' => '_cartflows_common[default_page_builder]', |
| 67 |
'title' => __( 'Show Templates designed with', 'cartflows' ), |
| 68 |
'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' ), |
| 69 |
'value' => $settings['default_page_builder'], |
| 70 |
'options' => array( |
| 71 |
'elementor' => __( 'Elementor', 'cartflows' ), |
| 72 |
'beaver-builder' => __( 'Beaver Builder', 'cartflows' ), |
| 73 |
'divi' => __( 'Divi', 'cartflows' ), |
| 74 |
'other' => __( 'Other', 'cartflows' ), |
| 75 |
), |
| 76 |
) |
| 77 |
); |
| 78 |
|
| 79 |
do_action( 'cartflows_after_settings_fields', $settings ); |
| 80 |
|
| 81 |
?> |
| 82 |
</div> |
| 83 |
<?php submit_button( __( 'Save Changes', 'cartflows' ), 'cartflows-common-setting-save-btn button-primary button', 'submit', false ); ?> |
| 84 |
<?php wp_nonce_field( 'cartflows-common-settings', 'cartflows-common-settings-nonce' ); ?> |
| 85 |
</div> |
| 86 |
</div> |
| 87 |
</div> |
| 88 |
<div class="postbox-container" id="postbox-container-1"> |
| 89 |
<div id="side-sortables"> |
| 90 |
|
| 91 |
<div class="postbox"> |
| 92 |
<h2 class="hndle"> |
| 93 |
<span class="dashicons dashicons-book"></span> |
| 94 |
<span><?php esc_html_e( 'Knowledge Base', 'cartflows' ); ?></span> |
| 95 |
</h2> |
| 96 |
<div class="inside"> |
| 97 |
<p> |
| 98 |
<?php esc_html_e( 'Not sure how something works? Take a peek at the knowledge base and learn.', 'cartflows' ); ?> |
| 99 |
</p> |
| 100 |
<p> |
| 101 |
<a href="<?php echo esc_url( 'https://cartflows.com/docs' ); ?>" target="_blank" rel="noopener"><?php _e( 'Visit Knowledge Base »', 'cartflows' ); ?></a> |
| 102 |
</p> |
| 103 |
</div> |
| 104 |
</div> |
| 105 |
|
| 106 |
<div class="postbox"> |
| 107 |
<h2 class="hndle"> |
| 108 |
<span class="dashicons dashicons-groups"></span> |
| 109 |
<span><?php esc_html_e( 'Community', 'cartflows' ); ?></span> |
| 110 |
</h2> |
| 111 |
<div class="inside"> |
| 112 |
<p> |
| 113 |
<?php esc_html_e( 'Join the community of super helpful CartFlows users. Say hello, ask questions, give feedback and help each other!', 'cartflows' ); ?> |
| 114 |
</p> |
| 115 |
<p> |
| 116 |
<a href="<?php echo esc_url( 'https://www.facebook.com/groups/cartflows/' ); ?>" target="_blank" rel="noopener"><?php _e( 'Join Our Facebook Group »', 'cartflows' ); ?></a> |
| 117 |
</p> |
| 118 |
</div> |
| 119 |
</div> |
| 120 |
|
| 121 |
<div class="postbox"> |
| 122 |
<h2 class="hndle"> |
| 123 |
<span class="dashicons dashicons-sos"></span> |
| 124 |
<span><?php esc_html_e( 'Five Star Support', 'cartflows' ); ?></span> |
| 125 |
</h2> |
| 126 |
<div class="inside"> |
| 127 |
<p> |
| 128 |
<?php esc_html_e( 'Got a question? Get in touch with CartFlows developers. We\'re happy to help!', 'cartflows' ); ?> |
| 129 |
</p> |
| 130 |
<p> |
| 131 |
<a href="<?php echo esc_url( 'https://cartflows.com/contact' ); ?>" target="_blank" rel="noopener"><?php _e( 'Submit a Ticket »', 'cartflows' ); ?></a> |
| 132 |
</p> |
| 133 |
</div> |
| 134 |
</div> |
| 135 |
|
| 136 |
</div> |
| 137 |
</div> |
| 138 |
</div> |
| 139 |
<!-- /post-body --> |
| 140 |
<br class="clear"> |
| 141 |
</div> |
| 142 |
</div> |
| 143 |
</form> |
| 144 |
|
| 145 |
|
| 146 |
<?php |
| 147 |
/** |
| 148 |
* Loads Zapier settings admin view. |
| 149 |
*/ |
| 150 |
do_action( 'cartflows_after_general_settings' ); |
| 151 |
?> |
| 152 |
|