first commit
This commit is contained in:
1
wp-content/plugins/popups/admin/views/index.php
Normal file
1
wp-content/plugins/popups/admin/views/index.php
Normal file
@@ -0,0 +1 @@
|
||||
<?php // Silence is golden
|
||||
@@ -0,0 +1,211 @@
|
||||
<?php
|
||||
// Exit if accessed directly
|
||||
if ( !defined( 'ABSPATH' ) ) exit;?>
|
||||
|
||||
<div class="spu-admin-options">
|
||||
|
||||
<?php do_action( 'spu/metaboxes/before_appearance_options', $opts );?>
|
||||
<h3>Overlay</h3>
|
||||
<table class="form-table">
|
||||
<tr>
|
||||
<th><label class="spu-label" for="spu_bgopacity"><?php _e( 'Overlay opacity', 'popups' ); ?></label></th>
|
||||
<td>
|
||||
<input type="number" id="spu_bgopacity" name="spu[css][bgopacity]" min="0" step="0.1" max="1" value="<?php echo esc_attr($opts['css']['bgopacity']); ?>" />
|
||||
<p class="spu-help"><?php _e( 'Leave at 0 for no background. Max value is 1', 'popups' ); ?></p>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th><label class="spu-label" for="spu_bgcolor"><?php _e( 'Overlay color', 'popups' ); ?></label></th>
|
||||
<td>
|
||||
<input id="spu_bgcolor" name="spu[css][overlay_color]" type="text" class="spu-color-field" value="<?php echo esc_attr($opts['css']['overlay_color']); ?>" />
|
||||
</td>
|
||||
</tr>
|
||||
<?php do_action( 'spu/metaboxes/after_overlay_appearance', $opts );?>
|
||||
<tr><th colspan="2"><?php if( ! defined('SPUP_VERSION') ) echo sprintf( __( 'On <a href="%s">Premium version</a> you can have full screen popups, or sticky popups, insert optin forms inside yours post and much more!','popups'), 'https://timersys.com/plugins/popups-premium/?utm_source=Plugin&utm_medium=appearance_overlay&utm_campaign=Popups%20Premium');?></th></tr>
|
||||
</table>
|
||||
<h3>Popup Background</h3>
|
||||
<table class="form-table">
|
||||
<tr>
|
||||
<th><label class="spu-label" for="spu-background-color"><?php _e( 'Background color', 'popups' ); ?></label></th>
|
||||
<td>
|
||||
<input id="spu-background-color" name="spu[css][background_color]" type="text" class="spu-color-field" value="<?php echo esc_attr($opts['css']['background_color']); ?>" />
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th><label class="spu-label" for="spu_background_opacity"><?php _e( 'Background opacity', 'popups' ); ?></label></th>
|
||||
<td>
|
||||
<input type="number" id="spu_background_opacity" name="spu[css][background_opacity]" min="0" step="0.1" max="1" value="<?php echo esc_attr($opts['css']['background_opacity']); ?>" />
|
||||
<p class="spu-help"><?php _e( 'Leave at 0 for no background. Max value is 1', 'popups' ); ?></p>
|
||||
</td>
|
||||
</tr>
|
||||
<?php do_action( 'spu/metaboxes/after_background_appearance', $opts );?>
|
||||
<tr><th colspan="2"><?php if( ! defined('SPUP_VERSION') ) echo sprintf( __( 'Check <a href="%s">Premium version</a> to add background images or choose a pre made optin theme!','popups'), 'https://timersys.com/plugins/popups-premium/?utm_source=Plugin&utm_medium=appearance_bg&utm_campaign=Popups%20Premium');?></th></tr>
|
||||
</table>
|
||||
<h3>Popup Box</h3>
|
||||
<table class="form-table">
|
||||
<tr class="hide-for-optins">
|
||||
<th><label class="spu-label" for="spu-width"><?php _e( 'Box width', 'popups' ); ?></label></th>
|
||||
<td>
|
||||
<input id="spu-width" name="spu[css][width]" id="spu-box-width" type="text" class="small" value="<?php echo esc_attr($opts['css']['width']); ?>" />
|
||||
<p class="spu-help"><?php _e( 'Max size the responsive popup will grow. You can use % or px.', 'popups' ); ?></p>
|
||||
</td>
|
||||
</tr>
|
||||
<tr class="hide-for-optins">
|
||||
<th><label class="spu-label" for="spu-padding"><?php _e( 'Padding', 'popups' ); ?></label></th>
|
||||
<td>
|
||||
<input id="spu-padding" name="spu[css][padding]" id="spu-box-padding" type="number" class="small" value="<?php echo esc_attr($opts['css']['padding']); ?>" />px
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th><label class="spu-label" for="spu-color"><?php _e( 'Text color', 'popups' ); ?></label></th>
|
||||
<td>
|
||||
<input id="spu-color" name="spu[css][color]" type="text" class="spu-color-field" value="<?php echo esc_attr($opts['css']['color']); ?>" />
|
||||
</td>
|
||||
</tr>
|
||||
<?php do_action( 'spu/metaboxes/after_box_appearance', $opts );?>
|
||||
</table>
|
||||
<h3>Popup Shadow</h3>
|
||||
<table class="form-table">
|
||||
<tr>
|
||||
<th><label class="spu-label" for="spu-shadow-color"><?php _e( 'Shadow Color', 'popups' ); ?></label></th>
|
||||
<td>
|
||||
<input id="spu-shadow-color" name="spu[css][shadow_color]" type="text" class="spu-color-field" value="<?php echo esc_attr($opts['css']['shadow_color']); ?>" />
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th><label class="spu-label" for="spu-shadow-type"><?php _e( 'Shadow Type', 'popups' ); ?></label></th>
|
||||
<td>
|
||||
<select name="spu[css][shadow_type]" id="spu-shadow-type">
|
||||
<option value="inset" <?php selected('inset',esc_attr($opts['css']['shadow_type']));?>>Inset</option>
|
||||
<option value="outset" <?php selected('outset',esc_attr($opts['css']['shadow_type']));?>>Outset</option>
|
||||
</select>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th><label class="spu-label" for="spu-shadow-x"><?php _e( 'X Offset', 'popups' ); ?></label></th>
|
||||
<td>
|
||||
<input id="spu-shadow-x" name="spu[css][shadow_x_offset]" type="number" step="1" class="small" value="<?php echo esc_attr($opts['css']['shadow_x_offset']); ?>" />px
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th><label class="spu-label" for="spu-shadow-y"><?php _e( 'Y Offset', 'popups' ); ?></label></th>
|
||||
<td>
|
||||
<input id="spu-shadow-y" name="spu[css][shadow_y_offset]" type="number" step="1" class="small" value="<?php echo esc_attr($opts['css']['shadow_y_offset']); ?>" />px
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th><label class="spu-label" for="spu-shadow-blur"><?php _e( 'Blur', 'popups' ); ?></label></th>
|
||||
<td>
|
||||
<input id="spu-shadow-blur" name="spu[css][shadow_blur]" type="number" step="1" class="small" value="<?php echo esc_attr($opts['css']['shadow_blur']); ?>" />px
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th><label class="spu-label" for="spu-shadow-spread"><?php _e( 'Spread', 'popups' ); ?></label></th>
|
||||
<td>
|
||||
<input id="spu-shadow-spread" name="spu[css][shadow_spread]" type="number" step="1" class="small" value="<?php echo esc_attr($opts['css']['shadow_spread']); ?>" />px
|
||||
</td>
|
||||
</tr>
|
||||
<?php do_action( 'spu/metaboxes/after_shadow_appearance', $opts );?>
|
||||
</table>
|
||||
<h3>Border</h3>
|
||||
|
||||
<table class="form-table">
|
||||
<tr>
|
||||
<th><label class="spu-label" for="spu-border-color"><?php _e( 'Border color', 'popups' ); ?></label></th>
|
||||
<td>
|
||||
<input name="spu[css][border_color]" id="spu-border-color" type="text" class="spu-color-field" value="<?php echo esc_attr($opts['css']['border_color']); ?>" />
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th><label class="spu-label" for="spu-border-width"><?php _e( 'Border width', 'popups' ); ?></label></th>
|
||||
<td>
|
||||
<input name="spu[css][border_width]" id="spu-border-width" type="number" min="0" max="25" value="<?php echo esc_attr($opts['css']['border_width']); ?>" /> px
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th><label class="spu-label" for="spu-border-radius"><?php _e( 'Border radius', 'popups' ); ?></label></th>
|
||||
<td>
|
||||
<input name="spu[css][border_radius]" id="spu-border-radius" type="number" min="0" max="25" value="<?php echo esc_attr($opts['css']['border_radius']); ?>" /> px
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th><label class="spu-label" for="spu-border-type"><?php _e( 'Border type', 'popups' ); ?></label></th>
|
||||
<td>
|
||||
<select name="spu[css][border_type]" id="spu-border-type">
|
||||
<option value="none" <?php selected('none',esc_attr($opts['css']['border_type']));?>>None</option>
|
||||
<option value="solid" <?php selected('solid',esc_attr($opts['css']['border_type']));?>>Solid</option>
|
||||
<option value="dotted" <?php selected('dotted',esc_attr($opts['css']['border_type']));?>>Dotted</option>
|
||||
<option value="dashed" <?php selected('dashed',esc_attr($opts['css']['border_type']));?>>Dashed</option>
|
||||
<option value="double" <?php selected('double',esc_attr($opts['css']['border_type']));?>>Double</option>
|
||||
<option value="groove" <?php selected('groove',esc_attr($opts['css']['border_type']));?>>Groove</option>
|
||||
<option value="inset" <?php selected('inset',esc_attr($opts['css']['border_type']));?>>Inset</option>
|
||||
<option value="outset" <?php selected('outset',esc_attr($opts['css']['border_type']));?>>Outset</option>
|
||||
<option value="ridge" <?php selected('ridge',esc_attr($opts['css']['border_type']));?>>Ridge</option>
|
||||
</select>
|
||||
</td>
|
||||
</tr>
|
||||
<?php do_action( 'spu/metaboxes/after_border_appearance', $opts );?>
|
||||
</table>
|
||||
<h3>Close</h3>
|
||||
<table class="form-table">
|
||||
<tr>
|
||||
<th><label class="spu-label" for="spu-close-color"><?php _e( 'Color', 'popups' ); ?></label></th>
|
||||
<td>
|
||||
<input name="spu[css][close_color]" id="spu-close-color" type="text" class="spu-color-field" value="<?php echo esc_attr($opts['css']['close_color']); ?>" />
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th><label class="spu-label" for="spu-close-color"><?php _e( 'Hover Color', 'popups' ); ?></label></th>
|
||||
<td>
|
||||
<input name="spu[css][close_hover_color]" id="spu-close-color" type="text" class="spu-color-field" value="<?php echo esc_attr($opts['css']['close_hover_color']); ?>" />
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th><label class="spu-label" for="spu-close-color"><?php _e( 'Shadow Color', 'popups' ); ?></label></th>
|
||||
<td>
|
||||
<input name="spu[css][close_shadow_color]" id="spu-close-color" type="text" class="spu-color-field" value="<?php echo esc_attr($opts['css']['close_shadow_color']); ?>" />
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th><label class="spu-label" for="spu-close-size"><?php _e( 'Size', 'popups' ); ?></label></th>
|
||||
<td>
|
||||
<input name="spu[css][close_size]" id="spu-close-size" type="text" class="" value="<?php echo esc_attr($opts['css']['close_size']); ?>" />
|
||||
<p class="spu-help"><?php _e( 'You can use px, em or rem units', 'popups' ); ?></p>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th><label class="spu-label" for="spu-border-radius"><?php _e( 'Position', 'popups' ); ?></label></th>
|
||||
<td>
|
||||
<select name="spu[css][close_position]" id="spu-border-type">
|
||||
<option value="top_right" <?php selected('top_right',esc_attr($opts['css']['close_position']));?>>Top right</option>
|
||||
<option value="top_left" <?php selected('top_left',esc_attr($opts['css']['close_position']));?>>Top Left</option>
|
||||
<option value="bottom_right" <?php selected('bottom_right',esc_attr($opts['css']['close_position']));?>>Bottom Right</option>
|
||||
<option value="bottom_left" <?php selected('bottom_left',esc_attr($opts['css']['close_position']));?>>Bottom Left</option>
|
||||
</select>
|
||||
</td>
|
||||
</tr>
|
||||
<?php do_action( 'spu/metaboxes/after_close_appearance', $opts );?>
|
||||
</table>
|
||||
<h3>CSS</h3>
|
||||
<table class="form-table">
|
||||
<tr>
|
||||
<th><label class="spu-label" for="spu-custom-css"><?php _e( 'Custom CSS', 'popups' ); ?></label></th>
|
||||
<td>
|
||||
<div id="custom_css_container">
|
||||
<div name="custom_css" id="custom_css" style="border: 1px solid #DFDFDF; -moz-border-radius: 3px; -webkit-border-radius: 3px; border-radius: 3px; width: 100%; height: 200px; position: relative;"></div>
|
||||
</div>
|
||||
<?php
|
||||
if( !isset( $opts['css']['custom_css'] ) ) {
|
||||
$popup_id = get_the_id();
|
||||
$opts['css']['custom_css'] = "/*
|
||||
* Add custom CSS for this popup
|
||||
* Be sure to start your rules with #spu-{$popup_id} { } and use !important when needed to override plugin rules
|
||||
*/";
|
||||
}
|
||||
?>
|
||||
<textarea name="spu[css][custom_css]" id="spu-custom-css" style="display: none;"><?php echo esc_attr($opts['css']['custom_css']); ?></textarea>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
<?php do_action( 'spu/metaboxes/after_appearance_options', $opts );?>
|
||||
</div>
|
||||
@@ -0,0 +1,16 @@
|
||||
<?php
|
||||
// Exit if accessed directly
|
||||
if ( !defined( 'ABSPATH' ) ) exit;
|
||||
?>
|
||||
|
||||
<p><?php _e( 'If you like this plugin, consider supporting it by donating.', 'popups' );?></p>
|
||||
|
||||
<a href="https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=K4T6L69EV9G2Q" class="button-primary"><?php _e( 'Donate with PayPal', 'popups' );?></a>
|
||||
|
||||
<p><?php _e( 'Some other ways to support this plugin', 'popups' );?></p>
|
||||
<ul class="ul-square">
|
||||
<li><a href="http://wordpress.org/support/view/plugin-reviews/popups?rate=5#postform" target="_blank"><?php _e( 'Leave a ★★★★★ review on WordPress.org', 'popups' );?></a></li>
|
||||
<li><a href="https://timersys.com/free-plugins/popups/" target="_blank"><?php _e( 'Write about Popups on your blog', 'popups' );?></a></li>
|
||||
<li><a href="http://twitter.com/intent/tweet/?text=I+am+using+Social+PopUP+on+my+WordPress+site.+It%27s+great%21&via=chifliiii&url=http%3A%2F%2Fwordpress.org%2Fplugins%2Fpopups%2F" target="_blank"><?php _e( 'Tweet about Popups', 'popups' );?></a></li>
|
||||
<li><a href="http://wordpress.org/plugins/popups/#compatibility"><?php _e( 'Vote "works" on the WordPress.org plugin page', 'popups' );?></a></li>
|
||||
</ul>
|
||||
@@ -0,0 +1,67 @@
|
||||
<?php
|
||||
// Exit if accessed directly
|
||||
if ( !defined( 'ABSPATH' ) ) exit;
|
||||
?>
|
||||
|
||||
<p><?php _e( 'You have some social shortcodes to use that will print a Facebook like, a Google+ Follow and a Twitter follow. Check the available options and <strong>configure them with your social accounts</strong>:', 'popups' );?></p>
|
||||
|
||||
<p><strong><?php _e( 'Facebook Page', 'popups' );?>:</strong></p>
|
||||
<p>
|
||||
[spu-facebook-page href="" name="" show_faces="" hide_cover="" width=""]
|
||||
</p>
|
||||
<a href="fb-opts" onclick="jQuery('#fbpage-opts').slideToggle();return false;"><?php _e( 'View Facebook Page Options', 'popups' );?></a>
|
||||
<ul id="fbpage-opts" style="display:none;">
|
||||
<li><b>href:</b> <?php _e( 'Your Facebook page url', 'popups' );?></li>
|
||||
<li><b>name:</b> <?php _e( 'Your page name', 'popups' );?></li>
|
||||
<li><b>show_faces:</b> <?php _e( 'true|false <b>Default value:</b> true', 'popups' );?></li>
|
||||
<li><b>hide_cover:</b> <?php _e( 'true|false <b>Default value:</b> false', 'popups' );?></li>
|
||||
<li><b>width:</b> <?php _e( 'number <b>Default value:</b> 500', 'popups' );?></b></li>
|
||||
</ul>
|
||||
|
||||
<p><strong><?php _e( 'Facebook Button', 'popups' );?>:</strong></p>
|
||||
<p>
|
||||
[spu-facebook href="" layout="" show_faces="" share="" action="" width=""]
|
||||
</p>
|
||||
<a href="fb-opts" onclick="jQuery('#fb-opts').slideToggle();return false;"><?php _e( 'View Facebook Options', 'popups' );?></a>
|
||||
<ul id="fb-opts" style="display:none;">
|
||||
<li><b>href:</b> <?php _e( 'Your Facebook page url', 'popups' );?></li>
|
||||
<li><b>layout:</b> <?php _e( 'standard, box_count, button <b>Default value:</b> button_count', 'popups' );?></li>
|
||||
<li><b>show_faces:</b> <?php _e( 'true <b>Default value:</b> false', 'popups' );?></li>
|
||||
<li><b>share:</b> <?php _e( 'true <b>Default value:</b> false', 'popups' );?></li>
|
||||
<li><b>action:</b> <?php _e( 'recommend <b>Default value:</b> like', 'popups' );?></li>
|
||||
<li><b>width:</b> <?php _e( 'number <b>Default value:</b>', 'popups' );?></li>
|
||||
</ul>
|
||||
<p><strong><?php _e( 'Google+ Button', 'popups' );?>:</strong></p>
|
||||
<p>
|
||||
[spu-google url="" size="" annotation=""]
|
||||
</p>
|
||||
<a href="go-opts" onclick="jQuery('#go-opts').slideToggle();return false;"><?php _e( 'View Google+ Options', 'popups' );?></a>
|
||||
<ul id="go-opts" style="display:none;">
|
||||
<li><b>url:</b> <?php _e( 'Your Google+ url', 'popups' );?></li>
|
||||
<li><b>type:</b> g-plusone, g-follow <?php _e( '<b>Default value:</b>', 'popups' );?>g-plusone</li>
|
||||
<li><b>size:</b> <?php _e( 'small, standard, tall <b>Default value:</b> medium', 'popups' );?></li>
|
||||
<li><b>annotation:</b> <?php _e( 'inline, none <b>Default value:</b> bubble', 'popups' );?></li>
|
||||
</ul>
|
||||
<p><strong><?php _e( 'Twitter Button', 'popups' );?>:</strong></p>
|
||||
<p>
|
||||
[spu-twitter user="" show_count="" size="" lang=""]
|
||||
</p>
|
||||
<a href="tw-opts" onclick="jQuery('#tw-opts').slideToggle();return false;"><?php _e( 'View Twitter Options', 'popups' );?></a>
|
||||
<ul id="tw-opts" style="display:none;">
|
||||
<li><b>user:</b> <?php _e( 'Your Twitter user <b>Default value: </b>', 'popups' ); echo ' ' . apply_filters( 'spu/social/tw_user', 'chifliiiii' ); ?></li>
|
||||
<li><b>show_count:</b> <?php _e( 'false <b>Default value:</b> true', 'popups' );?></li>
|
||||
<li><b>size:</b> <?php _e( 'large <b>Default value:</b> ""', 'popups' );?></li>
|
||||
<li><b>lang:</b> </li>
|
||||
</ul>
|
||||
<h3 style="padding-left:0;margin: 20px 0;"><strong><?php _e('Other available Shortcodes:', 'popups' );?></strong></h3>
|
||||
<p><strong><?php _e( 'Close Button', 'popups' );?>:</strong></p>
|
||||
<p>
|
||||
[spu-close class="" text="" align="" conversion="false"]
|
||||
</p>
|
||||
<a href="close-opts" onclick="jQuery('#close-opts').slideToggle();return false;"><?php _e( 'View Close shortcode Options', 'popups' );?></a>
|
||||
<ul id="close-opts" style="display:none;">
|
||||
<li><b>class:</b> <?php _e( 'Pass a custom class to style your button', 'popups' );?></li>
|
||||
<li><b>text:</b> <?php _e( 'Button label - <b>Default value:</b> Close', 'popups' );?></li>
|
||||
<li><b>conversion:</b> <?php _e( 'Conversion button?- <b>Default value:</b> False', 'popups' );?></li>
|
||||
<li><b>align:</b> <?php _e( 'left, right, center, none - <b>Default value:</b> center', 'popups' );?></li>
|
||||
</ul>
|
||||
@@ -0,0 +1,149 @@
|
||||
<?php
|
||||
// Exit if accessed directly
|
||||
if ( !defined( 'ABSPATH' ) ) exit;?>
|
||||
<div class="spu-admin-options">
|
||||
<h3>Position</h3>
|
||||
<table class="form-table">
|
||||
|
||||
<?php do_action( 'spu/metaboxes/before_display_options', $opts );?>
|
||||
<tr valign="top">
|
||||
<th><label for="spu_position"><?php _e( 'Box Position', 'popups' ); ?></label></th>
|
||||
<td>
|
||||
<select id="spu_position" name="spu[css][position]" class="widefat">
|
||||
<option value="centered" <?php selected($opts['css']['position'], 'centered'); ?>><?php _e( 'Centered', 'popups' ); ?></option>
|
||||
<option value="top-left" <?php selected($opts['css']['position'], 'top-left'); ?>><?php _e( 'Top Left', 'popups' ); ?></option>
|
||||
<option value="top-right" <?php selected($opts['css']['position'], 'top-right'); ?>><?php _e( 'Top Right', 'popups' ); ?></option>
|
||||
<option value="bottom-left" <?php selected($opts['css']['position'], 'bottom-left'); ?>><?php _e( 'Bottom Left', 'popups' ); ?></option>
|
||||
<option value="bottom-right" <?php selected($opts['css']['position'], 'bottom-right'); ?>><?php _e( 'Bottom Right', 'popups' ); ?></option>
|
||||
<option value="top-bar" <?php selected($opts['css']['position'], 'top-bar'); ?>><?php _e( 'Top Bar', 'popups' ); ?></option>
|
||||
<option value="bottom-bar" <?php selected($opts['css']['position'], 'bottom-bar'); ?>><?php _e( 'Bottom Bar', 'popups' ); ?></option>
|
||||
<?php do_action( 'spu/metaboxes/positions', $opts );?>
|
||||
</select>
|
||||
</td>
|
||||
<td colspan="2"></td>
|
||||
</tr>
|
||||
<tr><th colspan="2"><?php if( ! defined('SPUP_VERSION') ) echo sprintf( __( 'On <a href="%s">Premium version</a> there are more cool positions and popup styles.','popups'), 'https://timersys.com/plugins/popups-premium/?utm_source=Plugin&utm_medium=options_position&utm_campaign=Popups%20Premium');?></th></tr>
|
||||
<?php do_action( 'spu/metaboxes/after_position_options', $opts );?>
|
||||
</table>
|
||||
<h3>Trigger</h3>
|
||||
<table class="form-table">
|
||||
<tr valign="top">
|
||||
<th><label for="spu_trigger"><?php _e( 'Trigger action', 'popups' ); ?></label></th>
|
||||
<td class="spu-sm">
|
||||
<select id="spu_trigger" name="spu[trigger]" class="widefat">
|
||||
|
||||
<option value="seconds" <?php selected($opts['trigger'], 'seconds'); ?>><?php _e( 'seconds after page load', 'popups' ); ?></option>
|
||||
<option value="percentage" <?php selected($opts['trigger'], 'percentage'); ?>>% <?php _e( 'of page height', 'popups' ); ?></option>
|
||||
<option value="pixels" <?php selected($opts['trigger'], 'pixels'); ?>><?php _e( 'Scrolled down pixels', 'popups' ); ?></option>
|
||||
<option value="manual" <?php selected($opts['trigger'], 'manual'); ?>><?php _e( 'Manual Triggering', 'popups' ); ?></option>
|
||||
<?php do_action( 'spu/metaboxes/trigger_options', $opts );?>
|
||||
</select>
|
||||
</td>
|
||||
<td>
|
||||
<input type="number" class="spu-trigger-number" name="spu[trigger_number]" min="0" value="<?php echo esc_attr($opts['trigger_number']); ?>" />
|
||||
<?php do_action( 'spu/metaboxes/trigger_values', $opts );?>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td style="margin:0;padding:0"></td><td style="position: relative;top: -15px;margin:0;padding:0 0 0 10px"><p class="help"><?php _e( 'Choose how the popup will be triggered on the page', 'popups' ); ?></p></td>
|
||||
</tr>
|
||||
<tr><th colspan="2"><?php if( ! defined('SPUP_VERSION') ) echo sprintf( __( 'On <a href="%s">Premium version</a> you can use exit intent trigger technology, or attach to any element that appears in the viewport.','popups'), 'https://timersys.com/plugins/popups-premium/?utm_source=Plugin&utm_medium=options_trigger&utm_campaign=Popups%20Premium');?></th></tr>
|
||||
<?php do_action( 'spu/metaboxes/after_trigger_options', $opts );?>
|
||||
</table>
|
||||
<h3><?php _e( 'Cookies', 'popups');?></h3>
|
||||
<p><?php _e( 'We use PHP cookies to prevent popups opening for users after they closed it.', 'popups');?></p>
|
||||
<table class="form-table">
|
||||
<tr valign="top">
|
||||
<th><label for="spu_name_conversion_cookie"><?php _e( 'Conversion cookie name', 'popups' ); ?></label></th>
|
||||
<td colspan="3">
|
||||
<input type="text" id="spu_name_conversion_cookie" name="spu[name-convert-cookie]" value="<?php echo esc_attr($opts['name-convert-cookie']); ?>" />
|
||||
<p class="help"><?php _e( 'The name that the popup will use for convertion cookie. Changing this name will reset the cookie, so all users will see popup again.', 'popups' ); ?></p>
|
||||
</td>
|
||||
</tr>
|
||||
<tr valign="top">
|
||||
<th><label for="spu_duration_conversion_cookie"><?php _e( 'Conversion cookie Duration', 'popups' ); ?></label></th>
|
||||
<td colspan="3">
|
||||
<input type="number" id="spu_duration_conversion_cookie" name="spu[duration-convert-cookie]" min="0" value="<?php echo esc_attr($opts['duration-convert-cookie']); ?>" />
|
||||
<select name="spu[type-convert-cookie]">
|
||||
<option value="h" <?php selected(esc_attr($opts['type-convert-cookie']),'h'); ?>><?php _e('Hours','popups'); ?></option>
|
||||
<option value="d" <?php selected(esc_attr($opts['type-convert-cookie']),'d'); ?>><?php _e('Days','popups'); ?></option>
|
||||
</select>
|
||||
<p class="help"><?php _e( 'When a user do a conversion like for example a click or form submission, how many days/hours should it stay hidden?', 'popups' ); ?></p>
|
||||
</td>
|
||||
</tr>
|
||||
<tr valign="top">
|
||||
<th><label for="spu_name_closing_cookie"><?php _e( 'Closing cookie name', 'popups' ); ?></label></th>
|
||||
<td colspan="3">
|
||||
<input type="text" id="spu_name_closing_cookie" name="spu[name-close-cookie]" value="<?php echo esc_attr($opts['name-close-cookie']); ?>" />
|
||||
<p class="help"><?php _e( 'The name that the popup will use for closing cookie. Changing this name will reset the cookie, so all users will see popup again.', 'popups' ); ?></p>
|
||||
</td>
|
||||
</tr>
|
||||
<tr valign="top">
|
||||
<th><label for="spu_duration_close_cookie"><?php _e( 'Closing cookie duration', 'popups' ); ?></label></th>
|
||||
<td colspan="3">
|
||||
<input type="number" id="spu_duration_close_cookie" name="spu[duration-close-cookie]" min="0" value="<?php echo isset( $opts['duration-close-cookie'] ) ? esc_attr($opts['duration-close-cookie']) : esc_attr($opts['duration-convert-cookie']); ?>" />
|
||||
<select name="spu[type-close-cookie]">
|
||||
<option value="h" <?php selected(esc_attr($opts['type-close-cookie']),'h'); ?>><?php _e('Hours','popups'); ?></option>
|
||||
<option value="d" <?php selected(esc_attr($opts['type-close-cookie']),'d'); ?>><?php _e('Days','popups'); ?></option>
|
||||
</select>
|
||||
<p class="help"><?php _e( 'After closing the popup, how many days/hours should it stay hidden?', 'popups' ); ?></p>
|
||||
</td>
|
||||
</tr>
|
||||
<?php do_action( 'spu/metaboxes/after_cookie_options', $opts );?>
|
||||
</table>
|
||||
<h3>Close options</h3>
|
||||
<table class="form-table">
|
||||
<tr valign="top" class="conversion_close">
|
||||
<th><label for="spu_conversion_close"><?php _e( 'Close on conversion?', 'popups' ); ?></label></th>
|
||||
<td colspan="3">
|
||||
<label><input type="radio" id="spu_conversion_close_1" name="spu[conversion_close]" value="1" <?php checked($opts['conversion_close'], 1); ?> /> <?php _e( 'Yes' ); ?></label>
|
||||
<label><input type="radio" id="spu_conversion_close_0" name="spu[conversion_close]" value="0" <?php checked($opts['conversion_close'], 0); ?> /> <?php _e( 'No' ); ?></label>
|
||||
<p class="help"><?php _e( 'If you have a form or social shortcode, by default popup will close on submission/conversion', 'popups' ); ?></p>
|
||||
</td>
|
||||
</tr>
|
||||
<?php do_action( 'spu/metaboxes/after_close_options', $opts );?>
|
||||
</table>
|
||||
<h3>Other options</h3>
|
||||
<table class="form-table">
|
||||
<tr valign="top" class="auto_hide">
|
||||
<th><label for="spu_auto_hide"><?php _e( 'Auto-hide?', 'popups' ); ?></label></th>
|
||||
<td colspan="3">
|
||||
<label><input type="radio" id="spu_auto_hide_1" name="spu[auto_hide]" value="1" <?php checked($opts['auto_hide'], 1); ?> /> <?php _e( 'Yes' ); ?></label>
|
||||
<label><input type="radio" id="spu_auto_hide_0" name="spu[auto_hide]" value="0" <?php checked($opts['auto_hide'], 0); ?> /> <?php _e( 'No' ); ?></label>
|
||||
<p class="help"><?php _e( 'Hide box again when visitors scroll back up?', 'popups' ); ?></p>
|
||||
</td>
|
||||
</tr>
|
||||
<tr valign="top">
|
||||
<th><label for="spu_test_mode"><?php _e( 'Enable test mode?', 'popups' ); ?></label></th>
|
||||
<td colspan="3">
|
||||
<label><input type="radio" id="spu_test_mode_1" name="spu[test_mode]" value="1" <?php checked($opts['test_mode'], 1); ?> /> <?php _e( 'Yes' ); ?></label>
|
||||
<label><input type="radio" id="spu_test_mode_0" name="spu[test_mode]" value="0" <?php checked($opts['test_mode'], 0); ?> /> <?php _e( 'No' ); ?></label>
|
||||
<p class="help"><?php _e( 'If test mode is enabled, the box will show up regardless of whether a cookie has been set. (To admins only)', 'popups' ); ?></p>
|
||||
</td>
|
||||
</tr>
|
||||
<tr valign="top">
|
||||
<th><label><?php _e( 'Animation', 'popups' ); ?></label></th>
|
||||
<td colspan="3">
|
||||
<select id="spu_animation" name="spu[animation]" class="widefat">
|
||||
<option value="fade" <?php selected($opts['animation'], 'fade'); ?> > <?php _e( 'Fade In', 'popups' ); ?></option>
|
||||
<option value="slide" <?php selected($opts['animation'], 'slide'); ?> > <?php _e( 'Slide In', 'popups' ); ?></option>
|
||||
<?php do_action( 'spu/metaboxes/animations', $opts );?>
|
||||
<option value="disable" <?php selected($opts['animation'], 'disable'); ?> > <?php _e( 'Disable animations', 'popups' ); ?></option>
|
||||
</select>
|
||||
<p class="help"><?php _e( 'Slide will only apply when popup is on the corners', 'popups' ); ?></p>
|
||||
</td>
|
||||
</tr>
|
||||
<tr><th colspan="2"><?php if( ! defined('SPUP_VERSION') ) echo sprintf( __( 'On <a href="%s">Premium version</a> you have 8 new animations to play with!','popups'), 'https://timersys.com/plugins/popups-premium/?utm_source=Plugin&utm_medium=options_trigger&utm_campaign=Popups%20Premium');?></th></tr>
|
||||
<tr valign="top" class="powered_link">
|
||||
<th><label for="spu_powered_link"><?php _e( 'Show powered by link?', 'popups' ); ?></label></th>
|
||||
<td colspan="3">
|
||||
<label><input type="radio" id="spu_powered_link_1" name="spu[powered_link]" value="1" <?php checked($opts['powered_link'], 1); ?> /> <?php _e( 'Yes' ); ?></label>
|
||||
<label><input type="radio" id="spu_powered_link_0" name="spu[powered_link]" value="0" <?php checked($opts['powered_link'], 0); ?> /> <?php _e( 'No' ); ?></label>
|
||||
<p class="help"><?php echo sprintf(__( 'Shows a "powered by" link below your popup. If your affiliate link is set in the <a href="%s">settings</a>, it will be used.', 'popups' ), admin_url('edit.php?post_type=spucpt&page=spu_settings')); ?></p>
|
||||
</td>
|
||||
</tr>
|
||||
<?php do_action( 'spu/metaboxes/after_other_options', $opts );?>
|
||||
</table>
|
||||
<?php do_action( 'spu/metaboxes/after_options', $opts );?>
|
||||
</div>
|
||||
<?php wp_nonce_field( 'spu_options', 'spu_options_nonce' ); ?>
|
||||
@@ -0,0 +1,40 @@
|
||||
<?php
|
||||
// Exit if accessed directly
|
||||
if ( !defined( 'ABSPATH' ) ) exit;
|
||||
?>
|
||||
<?php
|
||||
|
||||
$today = strtotime(date("Y-m-d H:i:s"));
|
||||
$blackbegin = strtotime("2014-11-28");
|
||||
$blackend = strtotime("2014-12-02");
|
||||
if($today > $blackbegin && $today < $blackend) : ?>
|
||||
<div class="alert-premium">
|
||||
<p><strong>Happy Black Friday!</strong> Get any Timersys Plugin with a 40% discount using the <code>BLACKFRIDAY</code> coupon code </p>
|
||||
</div>
|
||||
<?php endif;?>
|
||||
|
||||
<p><?php _e( 'Take the best WordPress Popups plugin to the next level with Popups Premium extension.', 'popups' );?></p>
|
||||
<h2><?php _e( 'Popups Premium Features:', 'popups' );?></h2>
|
||||
<ul>
|
||||
<li><?php _e( 'Beautiful optin forms for popular mail providers', 'popups' );?></li>
|
||||
<li><?php _e( 'Currently supporting MailChimp, Aweber, Postmatic, Mailpoet, Constant Contact, ActiveCampaign, Newsletter plugin, InfusionSoft, etc', 'popups' );?></li>
|
||||
<li><?php _e( 'A/B testing. Explore which popup perform better for you.', 'popups' );?></li>
|
||||
<li><?php _e( 'Track impressions and Conversions of social likes and forms submissions like Contact Form 7, Gravity forms, etc', 'popups' );?></li>
|
||||
<li><?php _e( 'Track impressions and Conversions in Google Analytics ande define custom events', 'popups' );?></li>
|
||||
<li><?php _e( 'Exit Intent technology', 'popups' );?></li>
|
||||
<li><?php _e( 'New popup positions: top/bottoms bars , fullscreen mode, after post content', 'popups' );?></li>
|
||||
<li><?php _e( '8 New animations effects', 'popups' );?> - <a href="https://timersys.com/popups/?utm_source=Plugin&utm_medium=demo-button&utm_campaign=Popups%20Premium">Online demo</a></li>
|
||||
<li><?php _e( 'New trigger methods', 'popups' );?></li>
|
||||
<li><?php _e( 'More Display Rules: Show after N(numbers) of pages viewed', 'popups' );?></li>
|
||||
<li><?php _e( 'More Display Rules: Show popup at certain time', 'popups' );?></li>
|
||||
<li><?php _e( 'More Display Rules: Show popup at certain day', 'popups' );?></li>
|
||||
<li><?php _e( 'More Display Rules: Show/hide if another popup already converted', 'popups' );?></li>
|
||||
<li><?php _e( 'Timer for auto closing', 'popups' );?></li>
|
||||
<li><?php _e( 'Ability to disable close button', 'popups' );?></li>
|
||||
<li><?php _e( 'Ability to disable Advanced close methods like esc or clicking outside of the popup', 'popups' );?></li>
|
||||
<li><?php _e( 'Premium support', 'popups' );?></li>
|
||||
</ul>
|
||||
<p><strong>Hurry up and get your copy!</strong> Take advantage of this <span style="color:red">launch offer</span> before the price goes up. We have a <strong>lot of new features</strong> to be added soon!</p>
|
||||
<p style="text-align:center">
|
||||
<a class="button-primary" href="https://timersys.com/downloads/popups-premium/?utm_source=Plugin&utm_medium=buy-button&utm_campaign=Popups%20Premium"><?php _e( 'Buy Now!', 'popups' );?></a>
|
||||
</p>
|
||||
@@ -0,0 +1,109 @@
|
||||
<?php
|
||||
// Exit if accessed directly
|
||||
if ( !defined( 'ABSPATH' ) ) exit;
|
||||
|
||||
/*
|
||||
* Meta box - Rules
|
||||
*
|
||||
* This template file is used when editing a popup and creates the interface for editing popup rules.
|
||||
*
|
||||
* @type template
|
||||
* @since 2.0
|
||||
*/
|
||||
do_action( 'spu/metaboxes/before_rules', $post );
|
||||
?>
|
||||
|
||||
<table class="spu_table widefat" id="spu_rules">
|
||||
<tbody>
|
||||
<tr>
|
||||
<td class="label">
|
||||
<label for="post_type"><?php _e("Rules", 'popups' ); ?></label>
|
||||
<p class="description"><?php _e("Create a set of rules to determine where the popup will show", 'popups' ); ?></p>
|
||||
</td>
|
||||
<td>
|
||||
<div class="rules-groups">
|
||||
|
||||
<?php if( is_array($groups) ): ?>
|
||||
<?php foreach( $groups as $group_id => $group ):
|
||||
$group_id = 'group_' . $group_id;
|
||||
?>
|
||||
<div class="rules-group" data-id="<?php echo $group_id; ?>">
|
||||
<?php if( $group_id == 'group_0' ): ?>
|
||||
<h4><?php _e("Show this popup if", 'popups' ); ?></h4>
|
||||
<?php else: ?>
|
||||
<h4 class="rules-or"><span><?php _e("OR", 'popups' ); ?></span></h4>
|
||||
<?php endif; ?>
|
||||
<?php if( is_array($group) ): ?>
|
||||
<table class="spu_table widefat">
|
||||
<tbody>
|
||||
<?php foreach( $group as $rule_id => $rule ):
|
||||
$rule_id = 'rule_' . $rule_id;
|
||||
?>
|
||||
<tr data-id="<?php echo $rule_id; ?>">
|
||||
<td class="param"><?php
|
||||
|
||||
$choices = $this->get_rules_choices();
|
||||
|
||||
// create field
|
||||
$args = array(
|
||||
'group_id' => $group_id,
|
||||
'rule_id' => $rule_id,
|
||||
'name' => 'spu_rules[' . $group_id . '][' . $rule_id . '][param]',
|
||||
'value' => $rule['param']
|
||||
);
|
||||
|
||||
Spu_Helper::print_select( $args, $choices );
|
||||
|
||||
|
||||
?></td>
|
||||
<td class="operator"><?php
|
||||
|
||||
$args = array(
|
||||
'group_id' => $group_id,
|
||||
'rule_id' => $rule_id,
|
||||
'name' => 'spu_rules[' . $group_id . '][' . $rule_id . '][operator]',
|
||||
'value' => $rule['operator'],
|
||||
'param' => $rule['param'],
|
||||
|
||||
);
|
||||
Spu_Helper::ajax_render_operator( $args );
|
||||
|
||||
?></td>
|
||||
<td class="value"><?php
|
||||
$args = array(
|
||||
'group_id' => $group_id,
|
||||
'rule_id' => $rule_id,
|
||||
'value' => !empty($rule['value']) ? $rule['value'] : '',
|
||||
'name' => 'spu_rules[' . $group_id . '][' . $rule_id . '][value]',
|
||||
'param' => $rule['param'],
|
||||
);
|
||||
Spu_Helper::ajax_render_rules( $args );
|
||||
|
||||
?></td>
|
||||
<td class="add">
|
||||
<a href="#" class="rules-add-rule button"><?php _e("+ AND", 'popups' ); ?></a>
|
||||
</td>
|
||||
<td class="remove">
|
||||
<a href="#" class="rules-remove-rule rules-remove-rule">-</a>
|
||||
</td>
|
||||
</tr>
|
||||
<?php endforeach; ?>
|
||||
</tbody>
|
||||
</table>
|
||||
<?php endif; ?>
|
||||
</div>
|
||||
<?php endforeach; ?>
|
||||
|
||||
<h4 class="rules-or"><span><?php _e("OR", 'popups' ); ?></span></h4>
|
||||
|
||||
<a class="button rules-add-group" href="#"><?php _e("Add rule group (+ OR)", 'popups' ); ?></a>
|
||||
<p style="margin-top:30px">
|
||||
<?php echo sprintf(__('<strong>Hint</strong>: If you are planning to open the popup with a button, simple leave this set to "All Pages" and change trigger method below to "Manual triggering". Then inside the page you want to open the popup add the following shortcode [spu popup="%s"]Click here[/spu]','spu'),$post->ID);?>
|
||||
</p>
|
||||
<?php endif; ?>
|
||||
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
@@ -0,0 +1,6 @@
|
||||
<?php
|
||||
// Exit if accessed directly
|
||||
if ( !defined( 'ABSPATH' ) ) exit;
|
||||
?>
|
||||
<p><?php echo sprintf( __( 'You are using Popups plugin v%s', 'popups' ), SocialPopup::VERSION );?></p>
|
||||
<p><?php echo sprintf( __( 'If you need support please go to the WordPress.org <a href="%s">support forums</a>', 'popups' ), 'http://wordpress.org/support/plugin/popups/');?></p>
|
||||
@@ -0,0 +1,6 @@
|
||||
<?php
|
||||
// Exit if accessed directly
|
||||
if ( !defined( 'ABSPATH' ) ) exit;
|
||||
?>
|
||||
<p><?= __('Take a look to this "How to add a Popup" help video to better understand how the plugin works. Remember you can minimize this box click clicking on the top right arrow.');?></p>
|
||||
<iframe width="100%" height="315" style="max-width:550px;display: block;margin:10px auto;" src="https://www.youtube.com/embed/S_MfZne6X2I??rel=0&showinfo=0" frameborder="0" allowfullscreen></iframe>
|
||||
77
wp-content/plugins/popups/admin/views/settings-page.php
Normal file
77
wp-content/plugins/popups/admin/views/settings-page.php
Normal file
@@ -0,0 +1,77 @@
|
||||
<?php
|
||||
/**
|
||||
* Settings page template
|
||||
* @since 1.1
|
||||
*/
|
||||
?>
|
||||
<div class="wrap">
|
||||
<h2>Popups <?php echo SocialPopup::VERSION;
|
||||
if( class_exists('PopupsP') ){
|
||||
echo ' - Premium v', PopupsP::VERSION;
|
||||
}
|
||||
?></h2>
|
||||
<form name="spu-settings" method="post">
|
||||
<table class="form-table">
|
||||
<?php do_action( 'spu/settings_page/before' ); ?>
|
||||
<tr valign="top" class="">
|
||||
<th><label for="add_link"><?php _e( 'Affiliate link', 'popups' ); ?></label></th>
|
||||
<td colspan="3">
|
||||
<label><input type="text" id="add_link" name="spu_settings[aff_link]" value="<?php echo isset($opts['aff_link']) ? $opts['aff_link'] :'';?>" class="regular-text" />
|
||||
<p class="help"><?php echo sprintf(__( 'You can earn money by promoting the plugin! Join <a href="%s">our affiliate program</a> and paste your affiliate link here to earn 35% in commissions . Once entered, it will replace the default "Powered by" on the popups.', 'popups' ) , 'https://timersys.com/affiliates/'); ?></p>
|
||||
</td>
|
||||
</tr>
|
||||
<tr valign="top" class="">
|
||||
<th><label for="ajax_mode"><?php _e( 'Ajax mode?', 'popups' ); ?></label></th>
|
||||
<td colspan="3">
|
||||
<label><input type="checkbox" id="ajax_mode" name="spu_settings[ajax_mode]" value="1" <?php isset($opts['ajax_mode']) && checked($opts['ajax_mode'], 1); ?> />
|
||||
<p class="help"><?php _e( 'Load popups using ajax. Compatible with cache plugins, but might not work with all plugins', 'popups' ); ?></p>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr valign="top" class="">
|
||||
<th><label for="style"><?php _e( 'Remove shortcodes style', 'popups' ); ?></label></th>
|
||||
<td colspan="3">
|
||||
<label><input type="checkbox" id="style" name="spu_settings[shortcodes_style]" value="1" <?php isset($opts['shortcodes_style']) && checked($opts['shortcodes_style'], 1); ?> />
|
||||
<p class="help"><?php _e( 'By default the plugin will apply some style to shortcodes. Check here if you want to manually style them', 'popups' ); ?></p>
|
||||
</td>
|
||||
|
||||
</tr>
|
||||
<tr valign="top" class="">
|
||||
<th><label for="style"><?php _e( 'Unload Facebook javascript', 'popups' ); ?></label></th>
|
||||
<td colspan="3">
|
||||
<label><input type="checkbox" id="style" name="spu_settings[facebook]" value="1" <?php isset($opts['facebook']) && checked($opts['facebook'], 1); ?> />
|
||||
<p class="help"><?php _e( 'If you use your own Facebook script, check this', 'popups' ); ?></p>
|
||||
</td>
|
||||
|
||||
</tr>
|
||||
<tr valign="top" class="">
|
||||
<th><label for="style"><?php _e( 'Unload Google javascript', 'popups' ); ?></label></th>
|
||||
<td colspan="3">
|
||||
<label><input type="checkbox" id="style" name="spu_settings[google]" value="1" <?php isset($opts['google']) && checked($opts['google'], 1); ?> />
|
||||
<p class="help"><?php _e( 'If you use your own Google script, check this', 'popups' ); ?></p>
|
||||
</td>
|
||||
|
||||
</tr>
|
||||
<tr valign="top" class="">
|
||||
<th><label for="style"><?php _e( 'Unload Twitter javascript', 'popups' ); ?></label></th>
|
||||
<td colspan="3">
|
||||
<label><input type="checkbox" id="style" name="spu_settings[twitter]" value="1" <?php isset($opts['twitter']) && checked($opts['twitter'], 1); ?> />
|
||||
<p class="help"><?php _e( 'If you use your own Twitter script, check this', 'popups' ); ?></p>
|
||||
</td>
|
||||
|
||||
</tr>
|
||||
<?php do_action( 'spu/settings_page/after' ); ?>
|
||||
|
||||
<tr valign="top" class="">
|
||||
<th><label for="uninstall"><?php _e( 'Delete all data on Uninstall', 'popups' ); ?></label></th>
|
||||
<td colspan="3">
|
||||
<label><input type="checkbox" id="uninstall" name="spu_settings[uninstall]" value="1" <?php isset($opts['uninstall']) && checked($opts['uninstall'], 1); ?> />
|
||||
<p class="help"><?php _e( 'When you uninstall the plugin all popups, settings and stats will be deleted from your db', 'popups' ); ?></p>
|
||||
</td>
|
||||
|
||||
</tr>
|
||||
<tr><td><input type="submit" class="button-primary" value="<?php _e( 'Save settings', 'popups' );?>"/></td>
|
||||
<?php wp_nonce_field('spu_save_settings','spu_nonce'); ?>
|
||||
</table>
|
||||
</form>
|
||||
</div>
|
||||
Reference in New Issue
Block a user