We'll create fresh WordPress site with EMC2 Popup Disclaimer installed. You have 20 minutes to test the plugin after that site we'll be deleted.
EMC2 Popup Disclaimer uses Fancybox (http://fancybox.net) to display the popup, and jQuery-cookie (https://github.com/carhartl/jquery-cookie) to detect user session. Creates a cookie named “emc2pdc” that can be viewed with regular developer tools.
Easy to use! By default the script is added to the wp_footer action and will work quietly. You can also force the display on pages via shortcode or function call:
Shortcode: [emc2pdc id="42"]
-or-
Function: <?php emc2pdc_force( $atts=array(), $force=NULL, $id=NULL ); ?>
Check the demo at http://popup.emc2innovation.com !
To Do list:
Known bugs:
EMC2 Popup Disclaimer will work straight out of the box. There’s a few options available from within WordPress, and future releases will feature themeable options.
Settings can be found in these locations:
The settings page is straightforward except for perhaps the “Restrict operation to directory:” setting. This is the operational directory of the jQuery cookie plugin – default is ‘/’, which is your entire site. To specify operation for a certain directory, type it here like ‘/store’. More jQuery-cookie settings can be found at https://github.com/carhartl/jquery-cookie.
Things of note: