function a360_get_mcapi($username_or_apikey, $secure = false) { if (a360_MCAPI_is_compatible() && class_exists('MCAPI')) { // We can use the version of MCAPI already loaded return new MCAPI($username_or_apikey, $secure); } else { // We need to load our version if it has not been. if (!class_exists('A360_MCAPI')) { include_once plugin_dir_path(__FILE__) . 'php/A360_MCAPI.class.php'; } return new A360_MCAPI($username_or_apikey, $secure); } }
<div class="wrap a360-wrap"> <h2 class="a360-head"> <div class="a360-header-links"> <a href="http://analytics.google.com">visit Google Analytics</a> <span>|</span> <a href="http://mailchimp.com">visit MailChimp</a> </div> <?php echo __('Analytics360°', 'analytics360'); ?> </h2> <p class="a360-subhead" id="a360-header-credit">compliments of <a class="a360-mailchimp-link" href="http://mailchimp.com"><span>MailChimp</span></a></p> <p id="a360-notification"><?php echo $notification; ?> </p> <?php if (!a360_MCAPI_is_compatible()) { ?> <p class="error"><strong>Uh oh!</strong> You appear to have an older version of MailChimp's list signup WordPress plugin. Analytics 360° is not compatible with older versions of that plugin. Please <a href="http://www.mailchimp.com/plugins/mailchimp-wordpress-plugin/">update to the latest version</a>. <?php }