PluginProbe
Icegram Engage – Popups, Optins, CTAs & Lead Generation / 3.1.34
Icegram Engage – Popups, Optins, CTAs & Lead Generation v3.1.34
3.1.5 3.1.6 3.1.7 3.1.8 3.1.9 3.1.34 3.1.35 3.1.36 3.1.37 3.1.38 3.1.39 3.1.4 3.1.40 3.1.41 3.1.42 3.1.43 trunk 1.1 1.1.1 1.1.2 1.10 1.10.1 1.10.10 1.10.11 1.10.12 All 180 releases
icegram / lite / settings.php

settings.php in Icegram Engage – Popups, Optins, CTAs & Lead Generation 3.1.34, at lite/settings.php

72 lines 2.8 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2 if ( ! defined( 'ABSPATH' ) ) exit;
3 global $icegram;
4
5 if( isset( $_POST['submit'] ) && isset( $_POST['ig-settings-nonce'] ) && wp_verify_nonce( $_POST['ig-settings-nonce'], 'ig_settings' ) ) {
6 if( isset( $_POST['icegram_share_love'] ) ) {
7 update_option( 'icegram_share_love', sanitize_text_field($_POST['icegram_share_love']) );
8 } else {
9 update_option( 'icegram_share_love', 'no' );
10 }
11 if( isset( $_POST['icegram_cache_compatibility'] ) ) {
12 update_option( 'icegram_cache_compatibility', sanitize_text_field($_POST['icegram_cache_compatibility']) );
13 } else {
14 update_option( 'icegram_cache_compatibility', 'no' );
15 }
16 if( isset( $_POST['icegram_track_usage_enable'] ) ) {
17 update_option( 'ig_allow_tracking', sanitize_text_field($_POST['icegram_track_usage_enable']) );
18 } else {
19 update_option( 'ig_allow_tracking', 'no' );
20 }
21 }
22
23 ?>
24 <div class="wrap">
25 <h2><?php _e( "Icegram Engage Settings", "icegram" ) ?></h2>
26 <form name="icegram_settings" method="POST" action="<?php echo admin_url(); ?>edit.php?post_type=ig_campaign&page=icegram-settings">
27 <table class="form-table">
28 <tr>
29 <th scope="row"><?php _e( 'Share Icegram', 'icegram' ) ?></th>
30 <td>
31 <label for="icegram_share_love">
32 <input type="checkbox" name="icegram_share_love" id="icegram_share_love" value="yes" <?php checked('yes', get_option('icegram_share_love')); ?> />
33 <?php _e( 'Show "Powered by" link', 'icegram' ); ?>
34 </label>
35 </td>
36 </tr>
37 <tr>
38 <th scope="row"><?php _e( 'Cache Friendly?', 'icegram' ) ?></th>
39 <td>
40 <label for="icegram_cache_compatibility">
41 <input type="checkbox" name="icegram_cache_compatibility" id="icegram_cache_compatibility" value="yes" <?php checked('yes', get_option('icegram_cache_compatibility')); ?> />
42 <?php _e( 'Turn on "Lazy Load" - load Icegram scripts and messages after page load to avoid caching problems.', 'icegram' ); ?>
43 </label>
44 </td>
45 </tr>
46 <?php
47 $product_plan = $icegram->get_plan();
48 if( 'lite' === $product_plan ){
49 ?>
50 <tr>
51 <th scope="row"><?php _e( 'Plugin Usage Tracking', 'icegram' ) ?></th>
52 <td>
53 <label for="icegram_track_usage_enable">
54 <input type="checkbox" name="icegram_track_usage_enable" id="icegram_track_usage_enable" value="yes" <?php checked('yes', get_option('ig_allow_tracking')); ?> />
55 <?php _e( 'Enable Tracking Usage - Help us to improve Icegram by opting in to share non-sensitive plugin usage data.', 'icegram' ); ?>
56 </label>
57 </td>
58 </tr>
59 <?php
60 }
61 ?>
62 </table>
63 <?php
64 wp_nonce_field( 'ig_settings', 'ig-settings-nonce' );
65
66 submit_button();
67 ?>
68 </form>
69 </div>
70 <?php do_action( 'icegram_settings_after' );
71
72