<?php

/*
	Addon: PMPro Network
	Slug: pmpro-network-subsite
*/
pmpro_add_addon('github', array('title' => 'PMPro Network Subsite Helper', 'version' => '.2', 'widget' => 'pmpro_addon_pmpro_network_subsite_widget', 'enabled' => function_exists('pmpron_subsite_activated_plugin')));
function pmpro_addon_pmpro_network_subsite_widget($addon)
{
    ?>
<img class="addon-thumb" src="<?php 
    echo PMPRO_URL;
    ?>
/adminpages/addons/images/pmpro-network.gif" />
<div class="info">							
	<p>Have network subsites use membership data from a "main" site to handle access restrictions.</p>
	<div class="actions">							
		<?php 
    if ($addon['enabled']) {
        ?>
			<a href="https://github.com/strangerstudios/pmpro-network-subsite" class="button">Enabled</a>
		<?php 
    } elseif (file_exists(dirname(__FILE__) . "/../../../pmpro-network-subsite/pmpro-network-subsite.php")) {
        ?>
			<a href="<?php 
        echo wp_nonce_url(self_admin_url('plugins.php?action=activate&plugin=pmpro-network-subsite/pmpro-network-subsite.php'), 'activate-plugin_pmpro-network-subsite/pmpro-network-subsite.php');
        ?>
" class="button button-primary">Activate</a>
		<?php 
    } else {
        ?>
<?php

/*
	Addon: PMPro bbPress
	Slug: pmpro-bbpress
*/
pmpro_add_addon('gists', array('title' => 'PMPro bbPress', 'version' => '.1', 'widget' => 'pmpro_addon_pmpro_bbpress_widget', 'enabled' => function_exists('pmpro_check_forum')));
function pmpro_addon_pmpro_bbpress_widget($addon)
{
    ?>
<div class="info">
	<p>Locking down bbPress Forums by Membership Level and Forum ID.</p>
	<div class="actions">							
		<?php 
    if ($addon['enabled']) {
        ?>
			<a target="_blank" href="https://gist.github.com/strangerstudios/1633637" class="button">Enabled</a>
		<?php 
    } else {
        ?>
			<a target="_blank" href="https://gist.github.com/strangerstudios/1633637" class="button button-primary">View Gist</a>
		<?php 
    }
    ?>
	</div>						
</div> <!-- end info -->
<?php 
}
<?php

/*
	Addon: PMPro Addon Packages
	Slug: pmpro-addon-packages
*/
pmpro_add_addon('github', array('title' => 'PMPro Addon Packages', 'version' => '.4.3', 'widget' => 'pmpro_addon_pmpro_addon_packages_widget', 'enabled' => function_exists('pmproap_post_meta')));
function pmpro_addon_pmpro_addon_packages_widget($addon)
{
    ?>
<div class="info">							
	<p>Sell access to individual pages or posts for a flat fee. This is a workaround if you would like to allow multiple membership levels per user.</p>
	<div class="actions">							
		<?php 
    if ($addon['enabled']) {
        ?>
			<a href="https://github.com/strangerstudios/pmpro-addon-packages/blob/master/readme.txt" class="button">Enabled</a>
		<?php 
    } elseif (file_exists(dirname(__FILE__) . "/../../../pmpro-addon-packages/pmpro-addon-packages.php")) {
        ?>
			<a href="<?php 
        echo wp_nonce_url(self_admin_url('plugins.php?action=activate&plugin=pmpro-addon-packages/pmpro-addon-packages.php'), 'activate-plugin_pmpro-addon-packages/pmpro-addon-packages.php');
        ?>
" class="button button-primary">Activate</a>
		<?php 
    } else {
        ?>
			<a href="https://www.paidmembershipspro.com/wp-content/uploads/plugins/pmpro-addon-packages.zip" class="button button-primary">Download</a>
		<?php 
    }
    ?>
<?php

/*
	Addon: PMPro Shipping Add On
	Slug: pmpro-shipping
*/
pmpro_add_addon('github', array('title' => 'PMPro Shipping Add On', 'version' => '.2.2.1', 'widget' => 'pmpro_addon_pmpro_shipping_widget', 'enabled' => function_exists('pmproship_pmpro_checkout_boxes')));
function pmpro_addon_pmpro_shipping_widget($addon)
{
    /* <img class="addon-thumb" src="<?php echo PMPRO_URL?>/adminpages/addons/images/pmpro-shipping.jpg" /> */
    ?>
<div class="info">							
	<p>Adds shipping fields to the checkout page, confirmation page, confirmation emails, member's list and edit user profile pages.</p>
	<div class="actions">							
		<?php 
    if ($addon['enabled']) {
        ?>
			<a href="https://github.com/strangerstudios/pmpro-shipping/" class="button">Enabled</a>
		<?php 
    } elseif (file_exists(dirname(__FILE__) . "/../../../pmpro-shipping/pmpro-shipping.php")) {
        ?>
			<a href="<?php 
        echo wp_nonce_url(self_admin_url('plugins.php?action=activate&plugin=pmpro-shipping/pmpro-shipping.php'), 'activate-plugin_pmpro-shipping/pmpro-shipping.php');
        ?>
" class="button button-primary">Activate</a>
		<?php 
    } else {
        ?>
			<a href="http://www.paidmembershipspro.com/wp-content/uploads/plugins/pmpro-shipping.zip" class="button button-primary">Download</a>
		<?php 
    }
<?php

/*
	Addon: PMPro Register Helper
	Slug: pmpro-register-helper
*/
pmpro_add_addon('github', array('title' => 'PMPro Register Helper', 'version' => '.5.11', 'widget' => 'pmpro_addon_pmpro_register_helper_widget', 'enabled' => class_exists('PMProRH_Field')));
function pmpro_addon_pmpro_register_helper_widget($addon)
{
    ?>
<img class="addon-thumb" src="<?php 
    echo PMPRO_URL;
    ?>
/adminpages/addons/images/pmpro-register-helper.gif" />
<div class="info">							
	<p>Add additional meta fields to your PMPro checkout page and/or "Your Profile" pages. Support for text, select, multi-select, textarea, hidden, and custom HTML. Loop into existing checkout/profile field sections or add new ones.</p>
	<div class="actions">							
		<?php 
    if ($addon['enabled']) {
        ?>
			<a href="https://github.com/strangerstudios/pmpro-register-helper/blob/master/readme.txt" class="button">Enabled</a>
		<?php 
    } elseif (file_exists(dirname(__FILE__) . "/../../../pmpro-register-helper/pmpro-register-helper.php")) {
        ?>
			<a href="<?php 
        echo wp_nonce_url(self_admin_url('plugins.php?action=activate&plugin=pmpro-register-helper/pmpro-register-helper.php'), 'activate-plugin_pmpro-register-helper/pmpro-register-helper.php');
        ?>
" class="button button-primary">Activate</a>
		<?php 
    } else {
        ?>
<?php

/*
	Addon: PMPro WP Affiliate Platform Integration
	Slug: pmpro-wp-affiliate
*/
pmpro_add_addon('thirdparty', array('title' => 'PMPro WP Affiliate Platform Integration', 'version' => '.3', 'widget' => 'pmpro_addon_pmpro_wp_affiliate_widget', 'enabled' => function_exists('wpa_pmpro_after_checkout')));
function pmpro_addon_pmpro_wp_affiliate_widget($addon)
{
    ?>
<img class="addon-thumb" src="<?php 
    echo PMPRO_URL;
    ?>
/adminpages/addons/images/pmpro-wp-affiliate-platform.jpg" />
<div class="info">							
	<p>Process an affiliate via WP Affiliate Platform after a PMPro checkout.</p>
	<div class="actions">							
		<?php 
    if ($addon['enabled']) {
        ?>
			<a href="https://github.com/strangerstudios/pmpro-wp-affiliate-platform/" class="button">Enabled</a>
		<?php 
    } elseif (file_exists(dirname(__FILE__) . "/../../../pmpro-wp-affiliate-platform/pmpro-wp-affiliate-platform.php")) {
        ?>
			<a href="<?php 
        echo wp_nonce_url(self_admin_url('plugins.php?action=activate&plugin=pmpro-wp-affiliate-platform/pmpro-wp-affiliate-platform.php'), 'activate-plugin_pmpro-wp-affiliate-platform/pmpro-wp-affiliate-platform.php');
        ?>
" class="button button-primary">Activate</a>
		<?php 
    } else {
        ?>
<?php

/*
	Addon: PMPro Disable PMPro Emails
	Slug: pmpro-disable-emails
*/
pmpro_add_addon('gists', array('title' => 'PMPro Disable Emails', 'version' => '.1', 'widget' => 'pmpro_addon_pmpro_disable_emails_widget', 'enabled' => function_exists('dae_pmpro_email_recipient')));
function pmpro_addon_pmpro_disable_emails_widget($addon)
{
    ?>
<div class="info">
	<p>Disable all or specific emails sent by the PMPro plugin.</p>
	<div class="actions">							
		<?php 
    if ($addon['enabled']) {
        ?>
			<a target="_blank" href="https://gist.github.com/strangerstudios/3667545" class="button">Enabled</a>
		<?php 
    } else {
        ?>
			<a target="_blank" href="https://gist.github.com/strangerstudios/3667545" class="button button-primary">View Gist</a>
		<?php 
    }
    ?>
	</div>						
</div> <!-- end info -->
<?php 
}
<?php

/*
	Addon: PMPro Network
	Slug: pmpro-network
*/
pmpro_add_addon('github', array('title' => 'PMPro Network', 'version' => '.3.1', 'widget' => 'pmpro_addon_pmpro_network_widget', 'enabled' => function_exists('pmpron_new_blogs_settings')));
function pmpro_addon_pmpro_network_widget($addon)
{
    ?>
<img class="addon-thumb" src="<?php 
    echo PMPRO_URL;
    ?>
/adminpages/addons/images/pmpro-network.gif" />
<div class="info">							
	<p>Allow users to checkout for a membership to create a site on your WordPress multisite network.</p>
	<div class="actions">							
		<?php 
    if ($addon['enabled']) {
        ?>
			<a href="https://github.com/strangerstudios/pmpro-network/blob/master/readme.txt" class="button">Enabled</a>
		<?php 
    } elseif (file_exists(dirname(__FILE__) . "/../../../pmpro-network/pmpro-network.php")) {
        ?>
			<a href="<?php 
        echo wp_nonce_url(self_admin_url('plugins.php?action=activate&plugin=pmpro-network/pmpro-network.php'), 'activate-plugin_pmpro-network/pmpro-network.php');
        ?>
" class="button button-primary">Activate</a>
		<?php 
    } else {
        ?>
<?php

/*
	Addon: PMPro Email Templates Editor
	Slug: pmpro-email-templates-addon
*/
pmpro_add_addon('repo', array('title' => 'PMPro Email Templates', 'version' => '.5.2', 'widget' => 'pmpro_addon_email_templates_widget', 'enabled' => function_exists('pmproet_scripts')));
function pmpro_addon_email_templates_widget($addon)
{
    ?>
<img class="addon-thumb" src="<?php 
    echo PMPRO_URL;
    ?>
/adminpages/addons/images/pmpro-email-templates.gif" />
<div class="info">							
	<p>Easily edit system-generated Email Templates from the WordPress admin.</p>
	<div class="actions">							
		<?php 
    if ($addon['enabled']) {
        ?>
			<a href="http://wordpress.org/plugins/pmpro-email-templates-addon/" class="button">Enabled</a>
		<?php 
    } elseif (file_exists(dirname(__FILE__) . "/../../../pmpro-email-templates-addon/pmpro-email-templates.php")) {
        ?>
			<a href="<?php 
        echo wp_nonce_url(self_admin_url('plugins.php?action=activate&plugin=pmpro-email-templates-addon/pmpro-email-templates.php'), 'activate-plugin_pmpro-email-templates-addon/pmpro-email-templates.php');
        ?>
" class="button button-primary">Activate</a>
		<?php 
    } else {
        ?>
<?php

/*
	Addon: PMPro Infusionsoft Integration
	Slug: pmpro-infusionsoft
*/
pmpro_add_addon('thirdparty', array('title' => 'PMPro Infusionsoft Integration', 'version' => '.1', 'widget' => 'pmpro_addon_pmpro_infusionsoft_widget', 'enabled' => function_exists('pmprois_init')));
function pmpro_addon_pmpro_infusionsoft_widget($addon)
{
    ?>
<img class="addon-thumb" src="<?php 
    echo PMPRO_URL;
    ?>
/adminpages/addons/images/pmpro-infusionsoft.jpg" />
<div class="info">							
	<p>Integrate with Infusionsoft. Add members to email lists (groups, tags) based on their membership level. (Note: works without PMPro as well.)</p>
	<div class="actions">							
		<?php 
    if ($addon['enabled']) {
        ?>
			<a href="https://github.com/strangerstudios/pmpro-infusionsoft/" class="button">Enabled</a>
		<?php 
    } elseif (file_exists(dirname(__FILE__) . "/../../../pmpro-infusionsoft/pmpro-infusionsoft.php")) {
        ?>
			<a href="<?php 
        echo wp_nonce_url(self_admin_url('plugins.php?action=activate&plugin=pmpro-infusionsoft/pmpro-infusionsoft.php'), 'activate-plugin_pmpro-infusionsoft/pmpro-infusionsoft.php');
        ?>
" class="button button-primary">Activate</a>
		<?php 
    } else {
        ?>
<?php

/*
	Addon: PMPro Stripe Lite
	Slug: pmpro-stripe-lite
*/
pmpro_add_addon('github', array('title' => 'PMPro Stripe Lite', 'version' => '.1.1', 'widget' => 'pmpro_addon_pmpro_stripe_lite_widget', 'enabled' => function_exists('pmprosl_pmpro_pages_shortcode_checkout')));
function pmpro_addon_pmpro_stripe_lite_widget($addon)
{
    ?>
<div class="info">							
	<p>Remove billing fields (not required by Stripe) from the checkout page when using the Stripe payment gateway with PMPro.</p>
	<div class="actions">							
		<?php 
    if ($addon['enabled']) {
        ?>
			<a href="https://github.com/strangerstudios/pmpro-stripe-lite/blob/master/readme.txt" class="button">Enabled</a>
		<?php 
    } elseif (file_exists(dirname(__FILE__) . "/../../../pmpro-stripe-lite/pmpro-stripe-lite.php")) {
        ?>
			<a href="<?php 
        echo wp_nonce_url(self_admin_url('plugins.php?action=activate&plugin=pmpro-stripe-lite/pmpro-stripe-lite.php'), 'activate-plugin_pmpro-stripe-lite/pmpro-stripe-lite.php');
        ?>
" class="button button-primary">Activate</a>
		<?php 
    } else {
        ?>
			<a href="http://www.paidmembershipspro.com/wp-content/uploads/plugins/pmpro-stripe-lite.zip" class="button button-primary">Download</a>
		<?php 
    }
    ?>
<?php

/*
	Addon: PMPro Require Code to Register
	Slug: pmpro-require-code-to-register
*/
pmpro_add_addon('gists', array('title' => 'PMPro Require a Code to Register', 'version' => '.1', 'widget' => 'pmpro_addon_pmpro_require_code_to_register_widget', 'enabled' => function_exists('my_pmpro_registration_checks_require_code_to_register')));
function pmpro_addon_pmpro_require_code_to_register_widget($addon)
{
    ?>
<div class="info">
	<p>Require a discount code to checkout for a specific level.</p>
	<div class="actions">							
		<?php 
    if ($addon['enabled']) {
        ?>
			<a target="_blank" href="https://gist.github.com/strangerstudios/5573829" class="button">Enabled</a>
		<?php 
    } else {
        ?>
			<a target="_blank" href="https://gist.github.com/strangerstudios/5573829" class="button button-primary">View Gist</a>
		<?php 
    }
    ?>
	</div>						
</div> <!-- end info -->
<?php 
}
<?php

/*
	Addon: PMPro Expiration Date
	Slug: pmpro-expiration
*/
pmpro_add_addon('gists', array('title' => 'PMPro Expiration Date', 'version' => '.1', 'widget' => 'pmpro_addon_pmpro_expiration_widget', 'enabled' => function_exists('my_pmpro_checkout_level_specific_expiration')));
function pmpro_addon_pmpro_expiration_widget($addon)
{
    ?>
<div class="info">
	<p>Set a specific expiration date for a Membership Level.</p>
	<div class="actions">							
		<?php 
    if ($addon['enabled']) {
        ?>
			<a target="_blank" href="https://gist.github.com/strangerstudios/5709300" class="button">Enabled</a>
		<?php 
    } else {
        ?>
			<a target="_blank" href="https://gist.github.com/strangerstudios/5709300" class="button button-primary">View Gist</a>
		<?php 
    }
    ?>
	</div>						
</div> <!-- end info -->
<?php 
}
<?php

/*
	Addon: WP Bouncer
	Slug: wp-bouncer
*/
pmpro_add_addon('repo', array('title' => 'WP Bouncer', 'version' => '1.0.1', 'widget' => 'pmpro_addon_wp_bouncer_widget', 'enabled' => class_exists('WP_Bouncer')));
function pmpro_addon_wp_bouncer_widget($addon)
{
    ?>
<img class="addon-thumb" src="<?php 
    echo PMPRO_URL;
    ?>
/adminpages/addons/images/wp-bouncer.gif" />
<div class="info">							
	<p>Make sure users are only logged in from one computer or device at a time.</p>
	<div class="actions">							
		<?php 
    if ($addon['enabled']) {
        ?>
			<a href="https://github.com/strangerstudios/wp-bouncer/blob/master/readme.txt" class="button">Enabled</a>
		<?php 
    } elseif (file_exists(dirname(__FILE__) . "/../../../wp-bouncer/wp-bouncer.php")) {
        ?>
			<a href="<?php 
        echo wp_nonce_url(self_admin_url('plugins.php?action=activate&plugin=wp-bouncer/wp-bouncer.php'), 'activate-plugin_wp-bouncer/wp-bouncer.php');
        ?>
" class="button button-primary">Activate</a>
		<?php 
    } else {
        ?>
<?php

/*
	Addon: PMPro MailChimp Integration
	Slug: pmpro-mailchimp
*/
pmpro_add_addon('thirdparty', array('title' => 'PMPro MailChimp Integration', 'version' => '.3.4', 'widget' => 'pmpro_addon_pmpro_mailchimp_widget', 'enabled' => function_exists('pmpromc_init')));
function pmpro_addon_pmpro_mailchimp_widget($addon)
{
    ?>
<img class="addon-thumb" src="<?php 
    echo PMPRO_URL;
    ?>
/adminpages/addons/images/pmpro-mailchimp.jpg" />
<div class="info">							
	<p>Integrate User Registrations with Mailchimp. Adds members to lists based on their membership level. (Note: works without PMPro as well.)</p>
	<div class="actions">							
		<?php 
    if ($addon['enabled']) {
        ?>
			<a href="<?php 
        echo admin_url("plugins.php");
        ?>
" class="button">Enabled</a>
		<?php 
    } elseif (file_exists(dirname(__FILE__) . "/../../../pmpro-mailchimp/pmpro-mailchimp.php")) {
        ?>
			<a href="<?php 
        echo wp_nonce_url(self_admin_url('plugins.php?action=activate&plugin=pmpro-mailchimp/pmpro-mailchimp.php'), 'activate-plugin_pmpro-mailchimp/pmpro-mailchimp.php');
        ?>
" class="button button-primary">Activate</a>
Beispiel #16
0
<?php

/*
	Addon: Theme My Login
	Slug: pmpro-tml
*/
pmpro_add_addon('recommended', array('title' => 'Theme My Login', 'widget' => 'pmpro_addon_tml_widget', 'enabled' => class_exists('Theme_My_Login'), 'version' => '6.3.10'));
function pmpro_addon_tml_widget($addon)
{
    ?>
<div class="info">							
	<p>This plugin themes the WordPress login, registration and forgot password pages according to your current theme. By <a href="http://www.jfarthing.com/" target="_blank">Jeff Farthing</a></p>
	<div class="actions">							
		<form method="post" name="component-actions" action="">
			<?php 
    if ($addon['enabled']) {
        ?>
				<a href="<?php 
        echo admin_url("plugins.php");
        ?>
" class="button">Enabled</a>
			<?php 
    } elseif (file_exists(dirname(__FILE__) . "/../../../theme-my-login/theme-my-login.php")) {
        ?>
				<a href="<?php 
        echo wp_nonce_url(self_admin_url('plugins.php?action=activate&plugin=theme-my-login/theme-my-login.php'), 'activate-plugin_theme-my-login/theme-my-login.php');
        ?>
" class="button button-primary">Activate</a>
			<?php 
    } else {
        ?>
<?php

/*
	Addon: PMPro Expiration Date
	Slug: pmpro-expiration
*/
pmpro_add_addon('github', array('title' => 'PMPro Set Expiration Dates', 'version' => '.1.1', 'widget' => 'pmpro_addon_pmpro_expiration_widget', 'enabled' => function_exists('pmprosed_pmpro_checkout_level')));
function pmpro_addon_pmpro_expiration_widget($addon)
{
    ?>
<div class="info">
	<p>Set a specific expiration date (e.g. 2013-12-31) for a PMPro membership level or discount code.</p>
	<div class="actions">							
		<?php 
    if ($addon['enabled']) {
        ?>
			<a href="https://github.com/strangerstudios/pmpro-set-expiration-dates/blob/master/readme.txt" class="button">Enabled</a>
		<?php 
    } elseif (file_exists(dirname(__FILE__) . "/../../../pmpro-set-expiration-dates/pmpro-set-expiration-dates.php")) {
        ?>
			<a href="<?php 
        echo wp_nonce_url(self_admin_url('plugins.php?action=activate&plugin=pmpro-set-expiration-dates/pmpro-set-expiration-dates.php'), 'activate-plugin_pmpro-set-expiration-dates/pmpro-set-expiration-dates.php');
        ?>
" class="button button-primary">Activate</a>
		<?php 
    } else {
        ?>
			<a href="http://www.paidmembershipspro.com/wp-content/uploads/plugins/pmpro-set-expiration-dates.zip" class="button button-primary">Download</a>
		<?php 
    }
    ?>
<?php

/*
	Addon: PMPro bbPress
	Slug: pmpro-bbpress
*/
pmpro_add_addon('repo', array('title' => 'PMPro bbPress', 'version' => '1.0.1', 'widget' => 'pmpro_addon_pmpro_bbpress_widget', 'enabled' => function_exists('pmprobbp_add_meta_box')));
function pmpro_addon_pmpro_bbpress_widget($addon)
{
    ?>
<img class="addon-thumb" src="<?php 
    echo PMPRO_URL;
    ?>
/adminpages/addons/images/pmpro-bbpress.jpg" />
<div class="info">
	<p>Locking down bbPress Forums by Membership Level and Forum ID.</p>
	<div class="actions">							
		<?php 
    if ($addon['enabled']) {
        ?>
			<a href="<?php 
        echo admin_url("plugins.php");
        ?>
" class="button">Enabled</a>
		<?php 
    } elseif (file_exists(dirname(__FILE__) . "/../../../pmpro-bbpress/pmpro-bbpress.php")) {
        ?>
			<a href="<?php 
        echo wp_nonce_url(self_admin_url('plugins.php?action=activate&plugin=pmpro-bbpress/pmpro-bbpress.php'), 'activate-plugin_pmpro-bbpress/pmpro-bbpress.php');
        ?>
" class="button button-primary">Activate</a>
<?php

/*
	Addon: PMPro User Pages
	Slug: pmpro-user-pages
*/
pmpro_add_addon('github', array('title' => 'PMPro User Pages', 'version' => '.3', 'widget' => 'pmpro_addon_pmpro_user_pages_widget', 'enabled' => function_exists('pmproup_pmpro_after_checkout')));
function pmpro_addon_pmpro_user_pages_widget($addon)
{
    ?>
<div class="info">				
	<p>Creates a unique page for each Member after checkout, giving the Admin access to write customized content for each specific member.</p>
	<div class="actions">							
		<?php 
    if ($addon['enabled']) {
        ?>
			<a href="https://github.com/strangerstudios/pmpro-user-pages/blob/master/readme.txt" class="button">Enabled</a>
		<?php 
    } elseif (file_exists(dirname(__FILE__) . "/../../../pmpro-user-pages/pmpro-user-pages.php")) {
        ?>
			<a href="<?php 
        echo wp_nonce_url(self_admin_url('plugins.php?action=activate&plugin=pmpro-user-pages/pmpro-user-pages.php'), 'activate-plugin_pmpro-user-pages/pmpro-user-pages.php');
        ?>
" class="button button-primary">Activate</a>
		<?php 
    } else {
        ?>
			<a href="http://www.paidmembershipspro.com/wp-content/uploads/plugins/pmpro-user-pages.zip" class="button button-primary">Download</a>
		<?php 
    }
    ?>
<?php

/*
	Addon: PMPro Affiliates
	Slug: pmpro-affiliates
*/
pmpro_add_addon('github', array('title' => 'PMPro Affiliates', 'version' => '.2.2', 'widget' => 'pmpro_addon_pmpro_affiliates_widget', 'enabled' => function_exists('pmpro_affiliates_dependencies')));
function pmpro_addon_pmpro_affiliates_widget($addon)
{
    ?>
<div class="info">							
	<p>Lightweight Affiliate system. Create affiliate accounts and codes; tracks checkouts by affiliate account.</p>
	<div class="actions">							
		<?php 
    if ($addon['enabled']) {
        ?>
			<a href="https://github.com/strangerstudios/pmpro-affiliates/blob/master/readme.txt" class="button">Enabled</a>
		<?php 
    } elseif (file_exists(dirname(__FILE__) . "/../../../pmpro-affiliates/pmpro-affiliates.php")) {
        ?>
			<a href="<?php 
        echo wp_nonce_url(self_admin_url('plugins.php?action=activate&plugin=pmpro-affiliates/pmpro-affiliates.php'), 'activate-plugin_pmpro-affiliates/pmpro-affiliates.php');
        ?>
" class="button button-primary">Activate</a>
		<?php 
    } else {
        ?>
			<a href="https://github.com/strangerstudios/pmpro-affiliates/archive/master.zip" class="button button-primary">Download</a>
		<?php 
    }
    ?>
<?php

/*
	Addon: PMPro Post Affiliate Pro Integration
	Slug: pmpro-post-affiliate-pro
*/
pmpro_add_addon('thirdparty', array('title' => 'PMPro Post Affiliate Pro Integration', 'version' => '.3', 'widget' => 'pmpro_addon_pmpro_post_affiliate_pro_widget', 'enabled' => function_exists('pap_pmpro_track_sale')));
function pmpro_addon_pmpro_post_affiliate_pro_widget($addon)
{
    ?>
<img class="addon-thumb" src="<?php 
    echo PMPRO_URL;
    ?>
/adminpages/addons/images/pmpro-post-affiliate-pro.jpg" />
<div class="info">							
	<p>Integrate Paid Memberships Pro with the Post Affiliate Pro platform.</p>
	<div class="actions">							
		<?php 
    if ($addon['enabled']) {
        ?>
			<a href="https://github.com/strangerstudios/pmpro-post-affiliate-pro/blob/master/readme.txt" class="button">Enabled</a>
		<?php 
    } elseif (file_exists(dirname(__FILE__) . "/../../../pmpro-post-affiliate-pro/pmpro-post-affiliate-pro.php")) {
        ?>
			<a href="<?php 
        echo wp_nonce_url(self_admin_url('plugins.php?action=activate&plugin=pmpro-post-affiliate-pro/pmpro-post-affiliate-pro.php'), 'activate-plugin_pmpro-post-affiliate-pro/pmpro-post-affiliate-pro.php');
        ?>
" class="button button-primary">Activate</a>
		<?php 
    } else {
        ?>
<?php

/*
	Addon: PMPro AWeber Integration
	Slug: pmpro-aweber
*/
pmpro_add_addon('thirdparty', array('title' => 'PMPro AWeber Integration', 'version' => '1.0', 'widget' => 'pmpro_addon_pmpro_aweber_widget', 'enabled' => function_exists('pmproaw_init')));
function pmpro_addon_pmpro_aweber_widget($addon)
{
    ?>
<img class="addon-thumb" src="<?php 
    echo PMPRO_URL;
    ?>
/adminpages/addons/images/pmpro-aweber.gif" />
<div class="info">							
	<p>Integrate User Registrations with AWeber. Adds members to lists based on their membership level. (Note: works without PMPro as well.)</p>
	<div class="actions">							
		<?php 
    if ($addon['enabled']) {
        ?>
			<a href="<?php 
        echo admin_url("plugins.php");
        ?>
" class="button">Enabled</a>
		<?php 
    } elseif (file_exists(dirname(__FILE__) . "/../../../pmpro-aweber/pmpro-aweber.php")) {
        ?>
			<a href="<?php 
        echo wp_nonce_url(self_admin_url('plugins.php?action=activate&plugin=pmpro-aweber/pmpro-aweber.php'), 'activate-plugin_pmpro-aweber/pmpro-aweber.php');
        ?>
" class="button button-primary">Activate</a>
<?php

/*
	Addon: PMPro Custom Level Cost Text
	Slug: pmpro-level-cost-text
*/
pmpro_add_addon('github', array('title' => 'PMPro Level Cost Text', 'version' => '.2', 'widget' => 'pmpro_addon_pmpro_level_cost_text_widget', 'enabled' => function_exists('pclct_pmpro_discount_code_after_level_settings')));
function pmpro_addon_pmpro_level_cost_text_widget($addon)
{
    ?>
<div class="info">							
	<p>Adds a "level cost text" field to PMPro Membership Levels and Discount Codes to allow you to override the automatically generated level cost text PMPro provides.</p>
	<div class="actions">							
		<?php 
    if ($addon['enabled']) {
        ?>
			<a href="https://github.com/strangerstudios/pmpro-level-cost-text/blob/master/readme.txt" class="button">Enabled</a>
		<?php 
    } elseif (file_exists(dirname(__FILE__) . "/../../../pmpro-level-cost-text/pmpro-level-cost-text.php")) {
        ?>
			<a href="<?php 
        echo wp_nonce_url(self_admin_url('plugins.php?action=activate&plugin=pmpro-level-cost-text/pmpro-level-cost-text.php'), 'activate-plugin_pmpro-level-cost-text/pmpro-level-cost-text.php');
        ?>
" class="button button-primary">Activate</a>
		<?php 
    } else {
        ?>
			<a href="http://www.paidmembershipspro.com/wp-content/uploads/plugins/pmpro-level-cost-text.zip" class="button button-primary">Download</a>
		<?php 
    }
    ?>
<?php

/*
	Addon: PMPro Series
	Slug: pmpro-series
*/
pmpro_add_addon('github', array('title' => 'PMPro Series', 'version' => '.2.1', 'widget' => 'pmpro_addon_pmpro_series_widget', 'enabled' => class_exists("PMProSeries")));
function pmpro_addon_pmpro_series_widget($addon)
{
    ?>
<img class="addon-thumb" src="<?php 
    echo PMPRO_URL;
    ?>
/adminpages/addons/images/pmpro-series.gif" />
<div class="info">						
	<p>"Drip feed" content to your members over the course of their membership. Serializes content by # of days post-registration.</p>
	<div class="actions">									
		<?php 
    if ($addon['enabled']) {
        ?>
			<a href="<?php 
        echo admin_url("edit.php?post_type=pmpro_series");
        ?>
" class="button">Enabled</a>
		<?php 
    } elseif (file_exists(dirname(__FILE__) . "/../../../pmpro-series/pmpro-series.php")) {
        ?>
			<a href="<?php 
        echo wp_nonce_url(self_admin_url('plugins.php?action=activate&plugin=pmpro-series/pmpro-series.php'), 'activate-plugin_pmpro-series/pmpro-series.php');
        ?>
" class="button button-primary">Activate</a>
<?php

/*
	Addon: PMPro Require Name and Address for Free Level
	Slug: pmpro-freerequire
*/
pmpro_add_addon('github', array('title' => 'PMPro Require Name/Address for Free Level', 'version' => '.2', 'widget' => 'pmpro_addon_pmpro_freerequire_widget', 'enabled' => function_exists('my_pmpro_checkout_boxes_require_address')));
function pmpro_addon_pmpro_freerequire_widget($addon)
{
    ?>
<div class="info">
	<p>Require name/address for free Membership Level checkout.</p>
	<div class="actions">							
		<?php 
    if ($addon['enabled']) {
        ?>
			<a href="https://github.com/strangerstudios/pmpro-address-for-free-levels" class="button">Enabled</a>
		<?php 
    } elseif (file_exists(dirname(__FILE__) . "/../../../pmpro-address-for-free-levels/pmpro-address-for-free-levels.php")) {
        ?>
			<a href="<?php 
        echo wp_nonce_url(self_admin_url('plugins.php?action=activate&plugin=pmpro-address-for-free-levels/pmpro-address-for-free-levels.php'), 'activate-plugin_pmpro-address-for-free-levels/pmpro-address-for-free-levels.php');
        ?>
" class="button button-primary">Activate</a>
		<?php 
    } else {
        ?>
			<a href="http://www.paidmembershipspro.com/wp-content/uploads/plugins/pmpro-address-for-free-levels.zip" class="button button-primary">Download</a>
		<?php 
    }
    ?>
<?php

/*
	Addon: PMPro International Addresses
	Slug: pmpro-international-addresses
*/
pmpro_add_addon('github', array('title' => 'PMPro International Addresses', 'version' => '.2.2', 'widget' => 'pmpro_addon_pmpro_international_addresses_widget', 'enabled' => function_exists('pmproia_pmpro_international_addresses')));
function pmpro_addon_pmpro_international_addresses_widget($addon)
{
    /* <img class="addon-thumb" src="<?php echo PMPRO_URL?>/adminpages/addons/images/pmpro-international-addresses.jpg" /> */
    ?>
<div class="info">							
	<p>Adds long form addresses to the PMPro checkout.</p>
	<div class="actions">							
		<?php 
    if ($addon['enabled']) {
        ?>
			<a href="https://github.com/strangerstudios/pmpro-international-addresses/" class="button">Enabled</a>
		<?php 
    } elseif (file_exists(dirname(__FILE__) . "/../../../pmpro-international-addresses/pmpro-international-addresses.php")) {
        ?>
			<a href="<?php 
        echo wp_nonce_url(self_admin_url('plugins.php?action=activate&plugin=pmpro-international-addresses/pmpro-international-addresses.php'), 'activate-plugin_pmpro-international-addresses/pmpro-international-addresses.php');
        ?>
" class="button button-primary">Activate</a>
		<?php 
    } else {
        ?>
			<a href="http://www.paidmembershipspro.com/wp-content/uploads/plugins/pmpro-international-addresses.zip" class="button button-primary">Download</a>
		<?php 
    }
<?php

/*
	Addon: PMPro WooCommerce
	Slug: pmpro-woocommerce
*/
pmpro_add_addon('thirdparty', array('title' => 'PMPro WooCommerce', 'version' => '1.1', 'widget' => 'pmpro_addon_pmpro_woocommerce_widget', 'enabled' => function_exists('pmprowoo_add_membership_from_order')));
function pmpro_addon_pmpro_woocommerce_widget($addon)
{
    ?>
<img class="addon-thumb" src="<?php 
    echo PMPRO_URL;
    ?>
/adminpages/addons/images/pmpro-woocommerce.gif" />
<div class="info">							
	<p>Use WooCommerce to purchase membership or set members-only product pricing.</p>
	<div class="actions">							
		<?php 
    if ($addon['enabled']) {
        ?>
			<a href="<?php 
        echo admin_url("plugins.php");
        ?>
" class="button">Enabled</a>
		<?php 
    } elseif (file_exists(dirname(__FILE__) . "/../../../pmpro-woocommerce/pmpro-woocommerce.php")) {
        ?>
			<a href="<?php 
        echo wp_nonce_url(self_admin_url('plugins.php?action=activate&plugin=pmpro-woocommerce/pmpro-woocommerce.php'), 'activate-plugin_pmpro-woocommerce/pmpro-woocommerce.php');
        ?>
" class="button button-primary">Activate</a>
<?php

/*
	Addon: PMPro Constant Contact  Integration
	Slug: pmpro-constant-contact
*/
pmpro_add_addon('thirdparty', array('title' => 'PMPro Constant Contact Integration', 'version' => '1.0', 'widget' => 'pmpro_addon_pmpro_constant_contact_widget', 'enabled' => function_exists('pmprocc_init')));
function pmpro_addon_pmpro_constant_contact_widget($addon)
{
    ?>
<img class="addon-thumb" src="<?php 
    echo PMPRO_URL;
    ?>
/adminpages/addons/images/pmpro-constant-contact.gif" />
<div class="info">							
	<p>Integrate User Registrations with Constant Contact . Adds members to lists based on their membership level. (Note: works without PMPro as well.)</p>
	<div class="actions">							
		<?php 
    if ($addon['enabled']) {
        ?>
			<a href="<?php 
        echo admin_url("plugins.php");
        ?>
" class="button">Enabled</a>
		<?php 
    } elseif (file_exists(dirname(__FILE__) . "/../../../pmpro-constant-contact/pmpro-constant-contact.php")) {
        ?>
			<a href="<?php 
        echo wp_nonce_url(self_admin_url('plugins.php?action=activate&plugin=pmpro-constant-contact/pmpro-constant-contact.php'), 'activate-plugin_pmpro-constant-contact/pmpro-constant-contact.php');
        ?>
" class="button button-primary">Activate</a>
<?php

/*
	Addon: Hide Admin Bar From Non-Admins
	Slug: hide-admin-bar-from-non-admins
*/
pmpro_add_addon('repo', array('title' => 'Hide Admin Bar From Non-Admins', 'version' => '1.0', 'widget' => 'pmpro_addon_hide_admin_bar_from_non_admins_widget', 'enabled' => function_exists('habfna_disable_admin_bar')));
function pmpro_addon_hide_admin_bar_from_non_admins_widget($addon)
{
    ?>
<div class="info">							
	<p>Perfect for sites where there is only one admin who needs access to the dashboard and the admin bar. When activated only administrators will see the admin bar.</p>
	<div class="actions">							
		<form method="post" name="component-actions" action="">
			<?php 
    if ($addon['enabled']) {
        ?>
				<a href="<?php 
        echo admin_url("plugins.php");
        ?>
" class="button">Enabled</a>
			<?php 
    } elseif (file_exists(dirname(__FILE__) . "/../../../hide-admin-bar-from-non-admins/hide-admin-bar-from-non-admins.php")) {
        ?>
				<a href="<?php 
        echo wp_nonce_url(self_admin_url('plugins.php?action=activate&plugin=hide-admin-bar-from-non-admins/hide-admin-bar-from-non-admins.php'), 'activate-plugin_hide-admin-bar-from-non-admins/hide-admin-bar-from-non-admins.php');
        ?>
" class="button button-primary">Activate</a>
			<?php 
    } else {
        ?>