| 1 |
<?php |
| 2 |
/** |
| 3 |
* Advance settings view |
| 4 |
* |
| 5 |
* @package |
| 6 |
*/ |
| 7 |
?> |
| 8 |
<div class="basic-tools-field"> |
| 9 |
<h4 class="settings-title"> <?php echo __('Basic Tools', 'wpfnl'); ?> </h4> |
| 10 |
<div class="wpfnl-box"> |
| 11 |
<div class="wpfnl-field-wrapper"> |
| 12 |
<label> |
| 13 |
<?php echo __( 'Remove WPF Transient Cache', 'wpfnl' ); ?> |
| 14 |
<span class="wpfnl-tooltip"> |
| 15 |
<?php require WPFNL_DIR . '/admin/partials/icons/question-tooltip-icon.php'; ?> |
| 16 |
<p><?php echo __('If you are facing issues such as not getting plugin updates or license not working, clear the transient cache and try again.', 'wpfnl'); ?></p> |
| 17 |
</span> |
| 18 |
</label> |
| 19 |
|
| 20 |
<div class="wpfnl-fields"> |
| 21 |
<button class="btn-default clear-template" id="clear-transients"> |
| 22 |
<span class="sync-icon"><?php require WPFNL_DIR . '/admin/partials/icons/sync-icon.php'; ?></span> |
| 23 |
<span class="check-icon"><?php require WPFNL_DIR . '/admin/partials/icons/check-icon.php'; ?></span> |
| 24 |
<?php echo __('Delete transients', 'wpfnl'); ?> |
| 25 |
</button> |
| 26 |
<span class="wpfnl-alert"></span> |
| 27 |
</div> |
| 28 |
|
| 29 |
</div> |
| 30 |
|
| 31 |
<?php if( apply_filters( 'wpfunnels/is_wpfnl_pro_active', false ) ){?> |
| 32 |
<div class="wpfnl-field-wrapper analytics-stats"> |
| 33 |
<label><?php echo __('Disable Analytics Tracking For', 'wpfnl'); ?> |
| 34 |
<span class="wpfnl-tooltip"> |
| 35 |
<?php require WPFNL_DIR . '/admin/partials/icons/question-tooltip-icon.php'; ?> |
| 36 |
<p><?php echo __('If you want WPFunnels not to track traffic, conversion, & revenue count for Analytics from certain user roles in your site, then you may do so using these options.', 'wpfnl'); ?></p> |
| 37 |
</span> |
| 38 |
</label> |
| 39 |
|
| 40 |
<div class="wpfnl-fields"> |
| 41 |
<?php foreach( $this->user_roles as $role ) { ?> |
| 42 |
<span class="wpfnl-checkbox"> |
| 43 |
<input type="checkbox" name="analytics-role[]" id="<?php echo $role; ?>-analytics-role" data-role="<?php echo $role; ?>" <?php if(isset($this->general_settings['disable_analytics'][$role])){checked( $this->general_settings['disable_analytics'][$role], 'true' );} ?> /> |
| 44 |
<label for="<?php echo $role; ?>-analytics-role"><?php echo str_replace("_"," ",ucfirst($role)); ?></label> |
| 45 |
</span> |
| 46 |
<?php } ?> |
| 47 |
</div> |
| 48 |
</div> |
| 49 |
<?php } ?> |
| 50 |
|
| 51 |
<div class="wpfnl-field-wrapper analytics-stats"> |
| 52 |
<label><?php echo __('Disable Theme Styles in Funnel Pages', 'wpfnl'); ?> |
| 53 |
<span class="wpfnl-tooltip"> |
| 54 |
<?php require WPFNL_DIR . '/admin/partials/icons/question-tooltip-icon.php'; ?> |
| 55 |
<p><?php echo __('When editing funnel pages, Enabling this option will mean the default theme styles will not be loaded when editing funnel pages and rather load the default style by WPFunnels.', 'wpfnl'); ?></p> |
| 56 |
</span> |
| 57 |
</label> |
| 58 |
|
| 59 |
<div class="wpfnl-fields"> |
| 60 |
<span class="wpfnl-checkbox no-title"> |
| 61 |
<input type="checkbox" name="disable-theme-style" id="disable-theme-style" <?php if( $this->general_settings['disable_theme_style'] == 'on' ){ echo 'checked';} ?> /> |
| 62 |
<label for="disable-theme-style"></label> |
| 63 |
</span> |
| 64 |
</div> |
| 65 |
</div> |
| 66 |
|
| 67 |
<div class="wpfnl-field-wrapper analytics-stats"> |
| 68 |
<label><?php echo __('Enable log status', 'wpfnl'); ?> |
| 69 |
<span class="wpfnl-tooltip"> |
| 70 |
<?php require WPFNL_DIR . '/admin/partials/icons/question-tooltip-icon.php'; ?> |
| 71 |
<p><?php echo __('Enable logger status to save any log', 'wpfnl'); ?></p> |
| 72 |
</span> |
| 73 |
</label> |
| 74 |
|
| 75 |
<div class="wpfnl-fields"> |
| 76 |
<span class="wpfnl-checkbox no-title"> |
| 77 |
<input type="checkbox" name="enable-log-status" id="enable-log-status" <?php if( $this->general_settings['enable_log_status'] == 'on' ){ echo 'checked';} ?> /> |
| 78 |
<label for="enable-log-status"></label> |
| 79 |
</span> |
| 80 |
</div> |
| 81 |
</div> |
| 82 |
|
| 83 |
<!-- /field-wrapper --> |
| 84 |
</div> |
| 85 |
</div> |
| 86 |
|
| 87 |
<!-- Role management settings --> |
| 88 |
|
| 89 |
<!-- End role management settings --> |
| 90 |
|
| 91 |
<!-- rollback settings --> |
| 92 |
<div class="wpfnl-recaptcha-setting basic-tools-field"> |
| 93 |
<h4 class="settings-title"> <?php echo __('reCAPTCHA Settings', 'wpfnl'); ?> </h4> |
| 94 |
<div class="wpfnl-box"> |
| 95 |
|
| 96 |
<div class="wpfnl-field-wrapper analytics-stats"> |
| 97 |
<label><?php echo __('Connect reCAPTCHA (v3)', 'wpfnl'); ?></label> |
| 98 |
<div class="wpfnl-fields"> |
| 99 |
<span class="wpfnl-checkbox no-title"> |
| 100 |
<input type="checkbox" name="wpfnl-recapcha-enable" id="recapcha-pixel-enable" <?php if($this->recaptcha_settings['enable_recaptcha'] == 'on'){echo 'checked'; } ?>/> |
| 101 |
<label for="recapcha-pixel-enable"></label> |
| 102 |
</span> |
| 103 |
</div> |
| 104 |
</div> |
| 105 |
<div id="wpfnl-recapcha"> |
| 106 |
<div class="wpfnl-field-wrapper recaptcha-tracking" id="recaptcha-tracking"> |
| 107 |
<label> |
| 108 |
<?php echo __('reCAPTCHA Site Key', 'wpfnl'); ?> |
| 109 |
<span class="wpfnl-tooltip"> |
| 110 |
<?php require WPFNL_DIR . '/admin/partials/icons/question-tooltip-icon.php'; ?> |
| 111 |
<p><?php echo __('Collect the Site Key from your Google reCAPTCHA site settings under the reCAPTCHA keys.', 'wpfnl'); ?></p> |
| 112 |
</span> |
| 113 |
</label> |
| 114 |
<div class="wpfnl-fields"> |
| 115 |
<input type="text" name="wpfnl-recapcha-site-key" id="wpfnl-recapcha-site-key" value="<?php echo isset($this->recaptcha_settings['recaptcha_site_key']) ? $this->recaptcha_settings['recaptcha_site_key']: '' ; ?>" /> |
| 116 |
</div> |
| 117 |
</div> |
| 118 |
<div class="wpfnl-field-wrapper analytics-stats"> |
| 119 |
<label> |
| 120 |
<?php echo __('reCAPTCHA Site Secret', 'wpfnl'); ?> |
| 121 |
<span class="wpfnl-tooltip"> |
| 122 |
<?php require WPFNL_DIR . '/admin/partials/icons/question-tooltip-icon.php'; ?> |
| 123 |
<p><?php echo __('Collect the Secrect Key from your Google reCAPTCHA site settings under the reCAPTCHA keys.', 'wpfnl'); ?></p> |
| 124 |
</span> |
| 125 |
</label> |
| 126 |
<div class="wpfnl-fields"> |
| 127 |
<input type="text" name="wpfnl-recapcha-site-secret" id="wpfnl-recapcha-site-secret" value="<?php echo isset($this->recaptcha_settings['recaptcha_site_secret']) ? $this->recaptcha_settings['recaptcha_site_secret']: '' ; ?>" /> |
| 128 |
</div> |
| 129 |
</div> |
| 130 |
</div> |
| 131 |
</div> |
| 132 |
</div> |
| 133 |
|
| 134 |
<!-- rollback settings --> |
| 135 |
<div class="rollback-field"> |
| 136 |
<h4 class="settings-title"> <?php echo __('Rollback Settings', 'wpfnl'); ?> </h4> |
| 137 |
<div class="wpfnl-box"> |
| 138 |
<div class="wpfnl-field-wrapper"> |
| 139 |
<label><?php echo __('Current Version', 'wpfnl'); ?></label> |
| 140 |
<div class="wpfnl-fields"> |
| 141 |
<b>v<?php echo WPFNL_VERSION; ?></b> |
| 142 |
</div> |
| 143 |
</div> |
| 144 |
<!-- /field-wrapper --> |
| 145 |
|
| 146 |
<div class="wpfnl-field-wrapper wpfnl-align-top"> |
| 147 |
<label><?php echo __('Rollback to older Version', 'wpfnl'); ?></label> |
| 148 |
<div class="wpfnl-fields"> |
| 149 |
<select name="wpfnl-rollback" id="wpfnl-rollback"> |
| 150 |
<?php |
| 151 |
foreach ( $rollback_versions as $version ) { |
| 152 |
echo "<option value='{$version}'>$version</option>"; |
| 153 |
} |
| 154 |
?> |
| 155 |
</select> |
| 156 |
<?php |
| 157 |
echo sprintf( |
| 158 |
'<a data-placeholder-text="' . esc_html__( 'Reinstall', 'wpfnl' ) . ' v{VERSION}" href="#" data-placeholder-url="%s" class="wpfnl-button-spinner wpfnl-rollback-button btn-default">%s</a>', |
| 159 |
wp_nonce_url( admin_url( 'admin-post.php?action=wpfunnels_rollback&version=VERSION' ), 'wpfunnels_rollback' ), |
| 160 |
__( 'Reinstall', 'wpfnl' ) |
| 161 |
); |
| 162 |
?> |
| 163 |
<span class="hints wpfnl-error"> |
| 164 |
<?php echo __('<b>Warning:</b> Please backup your database before rolling back to an older version of the plugin.', 'wpfnl'); ?> |
| 165 |
</span> |
| 166 |
</div> |
| 167 |
</div> |
| 168 |
<!-- /field-wrapper --> |
| 169 |
</div> |
| 170 |
</div> |
| 171 |
|