'; // Get admin options $admin_options = get_option('nrelate_admin_options'); // get admin email address $admin_email = @$admin_options['admin_email_address']; // Communication if ($admin_email == null) { $msg = $msg . '
  • It\'s a good idea to provide nrelate with your email address. Check the box under the Communication area below.
  • '; } // AJAX call to nrelate server to bring back ad code status $msg.=''; echo $msg; }; add_action ('nrelate_admin_messages','nr_admin_message_set'); /** * nrelate theme compatibility * * Check active theme and provide messages to user that might be helpful. */ function nr_theme_compat() { // Theme Capability for either Related OR Popular if (defined('NRELATE_RELATED_ACTIVE') || defined('NRELATE_POPULAR_ACTIVE')) { $theme_data = current_theme_info(); // Woothemes if (strlen(strstr($theme_data->author,'woothemes'))>0) { $msg = $msg . '
  • ' . sprintf('Woothemes are supported, but may require %sconfiguration%s.', '', '') . '
  • '; } } echo $msg; } add_action ('nrelate_admin_messages','nr_theme_compat'); /** * nrelate plugin compatibility * * Check active plugins to see if they are compatable with nrelate * If these plugins are active, provide messages to user that might be helpful. */ function nr_plugin_compat() { // Plugin Capability for either Related OR Popular if (defined('NRELATE_RELATED_ACTIVE') || defined('NRELATE_POPULAR_ACTIVE')) { //W3 Total Cache if (is_plugin_active('w3-total-cache/w3-total-cache.php')) { $msg = $msg . '
  • ' . sprintf('W3 Total Cache is supported, but may require %sconfiguration%s.', '', '') . '
  • '; } //CDN Tools if (is_plugin_active('cdn-tools/cdntools.php')) { $msg = $msg . '
  • ' . sprintf('CDN Tools option "Google ajax CDN" is not supported. You can learn more %shere%s.', '', '') . '
  • '; } //WP Minify if (is_plugin_active('wp-minify/wp-minify.php')) { $msg = $msg . '
  • ' . sprintf('WP Minify is supported, but may require %sconfiguration%s.', '', '') . '
  • '; } } echo isset($msg) ? $msg : ''; } add_action ('nrelate_admin_messages','nr_plugin_compat'); ?>