*/
// If this is an admin request and the cookie pop-ups have been enabled - Popup test in scripting on page
-if ((!empty($_REQUEST['force_cookie']) || $websiteSettings['show_cookie_popup']) && !is_admin()) {
+if ( ( !empty( $_REQUEST['force_cookie'] ) || $websiteSettings['show_cookie_popup'] ) && !is_admin() ) {
// Make sure that the jQuery scripts are included
function enqueueJquery() {
// Have WordPress include the cookie pop-up code just before the footer.
function doCookiePopUp() {
- include(GLM_SERVERSTATS_PLUGIN_MODEL_PATH.'/frontCookiePopUp.php');
+ include GLM_SERVERSTATS_PLUGIN_MODEL_PATH . '/frontCookiePopUp.php';
}
- add_action( 'get_footer', 'doCookiePopUp' );
+ add_action( 'wp_footer', 'doCookiePopUp' );
}