| 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 |
do_action( 'cartflows_after_settings_fields', $settings ); |
| 64 |
|
| 65 |
?> |
| 66 |
</div> |
| 67 |
<?php submit_button( __( 'Save Changes', 'cartflows' ), 'cartflows-common-setting-save-btn button-primary button', 'submit', false ); ?> |
| 68 |
<?php wp_nonce_field( 'cartflows-common-settings', 'cartflows-common-settings-nonce' ); ?> |
| 69 |
</div> |
| 70 |
</div> |
| 71 |
</div> |
| 72 |
<div class="postbox-container" id="postbox-container-1"> |
| 73 |
<div id="side-sortables"> |
| 74 |
|
| 75 |
<div class="postbox"> |
| 76 |
<h2 class="hndle"> |
| 77 |
<span class="dashicons dashicons-book"></span> |
| 78 |
<span><?php esc_html_e( 'Knowledge Base', 'cartflows' ); ?></span> |
| 79 |
</h2> |
| 80 |
<div class="inside"> |
| 81 |
<p> |
| 82 |
<?php esc_html_e( 'Not sure how something works? Take a peek at the knowledge base and learn.', 'cartflows' ); ?> |
| 83 |
</p> |
| 84 |
<p> |
| 85 |
<a href="<?php echo esc_url( 'https://cartflows.com/docs' ); ?>" target="_blank" rel="noopener"><?php _e( 'Visit Knowledge Base »', 'cartflows' ); ?></a> |
| 86 |
</p> |
| 87 |
</div> |
| 88 |
</div> |
| 89 |
|
| 90 |
<div class="postbox"> |
| 91 |
<h2 class="hndle"> |
| 92 |
<span class="dashicons dashicons-groups"></span> |
| 93 |
<span><?php esc_html_e( 'Community', 'cartflows' ); ?></span> |
| 94 |
</h2> |
| 95 |
<div class="inside"> |
| 96 |
<p> |
| 97 |
<?php esc_html_e( 'Join the community of super helpful CartFlows users. Say hello, ask questions, give feedback and help each other!', 'cartflows' ); ?> |
| 98 |
</p> |
| 99 |
<p> |
| 100 |
<a href="<?php echo esc_url( 'https://www.facebook.com/groups/cartflows/' ); ?>" target="_blank" rel="noopener"><?php _e( 'Join Our Facebook Group »', 'cartflows' ); ?></a> |
| 101 |
</p> |
| 102 |
</div> |
| 103 |
</div> |
| 104 |
|
| 105 |
<div class="postbox"> |
| 106 |
<h2 class="hndle"> |
| 107 |
<span class="dashicons dashicons-sos"></span> |
| 108 |
<span><?php esc_html_e( 'Five Star Support', 'cartflows' ); ?></span> |
| 109 |
</h2> |
| 110 |
<div class="inside"> |
| 111 |
<p> |
| 112 |
<?php esc_html_e( 'Got a question? Get in touch with CartFlows developers. We\'re happy to help!', 'cartflows' ); ?> |
| 113 |
</p> |
| 114 |
<p> |
| 115 |
<a href="<?php echo esc_url( 'https://cartflows.com/contact' ); ?>" target="_blank" rel="noopener"><?php _e( 'Submit a Ticket »', 'cartflows' ); ?></a> |
| 116 |
</p> |
| 117 |
</div> |
| 118 |
</div> |
| 119 |
|
| 120 |
</div> |
| 121 |
</div> |
| 122 |
</div> |
| 123 |
<!-- /post-body --> |
| 124 |
<br class="clear"> |
| 125 |
</div> |
| 126 |
</div> |
| 127 |
</form> |
| 128 |
|