PluginProbe ʕ •ᴥ•ʔ
Post Affiliate Pro / trunk
Post Affiliate Pro vtrunk
1.29.5 1.29.4 1.29.3 1.29.0 1.29.1 1.29.2 1.3.0 1.3.1 1.3.2 1.3.3 1.4.0 1.4.1 1.5.0 1.5.1 1.5.3 1.5.4 1.5.5 1.5.6 1.5.7 1.6.0 1.6.1 1.6.2 1.8.0 1.8.1 1.8.2 1.8.3 1.8.4 1.9.0 1.9.1 1.9.2 1.9.3 1.9.4 trunk 1.0.1 1.0.10 1.0.11 1.0.2 1.0.3 1.0.4 1.0.5 1.0.6 1.0.7 1.0.8 1.0.9 1.1.1 1.1.2 1.1.3 1.1.4 1.1.5 1.10.1 1.10.2 1.10.3 1.10.4 1.11.1 1.11.2 1.12.1 1.12.2 1.12.3 1.12.4 1.12.5 1.13.0 1.13.1 1.13.2 1.13.3 1.13.4 1.13.5 1.13.6 1.14.0 1.14.1 1.14.2 1.15.0 1.15.1 1.15.2 1.15.3 1.15.4 1.15.5 1.16.0 1.16.1 1.16.2 1.16.3 1.16.4 1.16.5 1.17.0 1.18.0 1.18.1 1.18.2 1.18.3 1.18.4 1.19.0 1.19.1 1.19.10 1.19.11 1.19.12 1.19.13 1.19.14 1.19.15 1.19.16 1.19.17 1.19.2 1.19.3 1.19.4 1.19.5 1.19.6 1.19.7 1.19.8 1.19.9 1.2.0 1.2.1 1.2.10 1.2.11 1.2.12 1.2.13 1.2.14 1.2.15 1.2.16 1.2.17 1.2.18 1.2.19 1.2.2 1.2.20 1.2.21 1.2.22 1.2.23 1.2.24 1.2.25 1.2.26 1.2.28 1.2.3 1.2.31 1.2.32 1.2.33 1.2.4 1.2.5 1.2.6 1.2.7 1.2.8 1.2.9 1.20.0 1.20.1 1.21.0 1.21.1 1.21.2 1.21.3 1.21.4 1.21.5 1.21.6 1.21.7 1.22.0 1.22.1 1.22.2 1.23.0 1.23.1 1.23.2 1.23.3 1.23.4 1.23.5 1.23.6 1.23.7 1.23.8 1.24.1 1.24.2 1.24.3 1.24.4 1.24.5 1.24.6 1.24.7 1.24.8 1.24.9 1.25.0 1.26.0 1.26.1 1.26.10 1.26.11 1.26.2 1.26.3 1.26.4 1.26.5 1.26.6 1.26.7 1.26.8 1.26.9 1.27.0 1.27.1 1.27.10 1.27.11 1.27.12 1.27.13 1.27.14 1.27.15 1.27.2 1.27.3 1.27.5 1.27.6 1.27.7 1.27.8 1.27.9 1.28.0 1.28.1 1.28.2 1.28.3
postaffiliatepro / Form / Settings / Integrations.class.php
postaffiliatepro / Form / Settings Last commit date
AdditionalOptions.class.php 2 months ago CampaignInfo.class.php 2 months ago Campaigns.class.php 2 months ago ClickTracking.class.php 2 months ago ContactForm7.class.php 2 months ago Debugging.class.php 4 weeks ago EDD.class.php 4 weeks ago General.class.php 4 weeks ago Integrations.class.php 2 months ago LifterLMS.class.php 2 months ago Marketpress.class.php 4 weeks ago MemberPress.class.php 2 months ago Membership2.class.php 2 months ago PMPro.class.php 2 months ago PPBuyNowButton.class.php 2 months ago RestrictContentPro.class.php 2 months ago S2Member.class.php 2 months ago Signup.class.php 2 months ago SimplePayPro.class.php 2 months ago StripePayments.class.php 4 weeks ago SureCart.class.php 2 months ago WPEasyCart.class.php 2 months ago WPPayForms.class.php 2 months ago WishListMember.class.php 2 months ago WooComm.class.php 4 weeks ago
Integrations.class.php
79 lines
1 <?php
2 if (!defined('ABSPATH')) exit;
3
4 class postaffiliatepro_Form_Settings_Integrations extends postaffiliatepro_Form_Base {
5 public function __construct() {
6 parent::__construct(postaffiliatepro::INTEGRATIONS_SETTINGS_PAGE_NAME, 'options.php');
7 }
8
9 protected function getTemplateFile() {
10 return WP_PLUGIN_DIR . '/postaffiliatepro/Template/IntegrationsConfig.xtpl';
11 }
12
13 protected function initForm() {
14 // CF7
15 $this->addCheckbox(postaffiliatepro_Form_Settings_ContactForm7::CONTACT7_SIGNUP_COMMISSION_ENABLED);
16 $this->imageTpl(postaffiliatepro_Form_Settings_ContactForm7::CONTACT7_SIGNUP_COMMISSION_ENABLED, 'cf7', 'Contact form 7');
17 // EDD
18 $this->addCheckbox(postaffiliatepro_Form_Settings_EDD::EDD_COMMISSION_ENABLED);
19 $this->imageTpl(postaffiliatepro_Form_Settings_EDD::EDD_COMMISSION_ENABLED, 'edd', 'Easy Digital Downloads');
20 // LifterLMS
21 $this->addCheckbox(postaffiliatepro_Form_Settings_LifterLMS::LIFTERLMS_COMMISSION_ENABLED);
22 $this->imageTpl(postaffiliatepro_Form_Settings_LifterLMS::LIFTERLMS_COMMISSION_ENABLED, 'lifterlms', 'LifterLMS');
23 // Marketpress
24 $this->addCheckbox(postaffiliatepro_Form_Settings_Marketpress::MARKETPRESS_COMMISSION_ENABLED);
25 $this->imageTpl(postaffiliatepro_Form_Settings_Marketpress::MARKETPRESS_COMMISSION_ENABLED, 'marketpress', 'Marketpress');
26 // MemberPress
27 $this->addCheckbox(postaffiliatepro_Form_Settings_MemberPress::MEMBERPRESS_COMMISSION_ENABLED);
28 $this->imageTpl(postaffiliatepro_Form_Settings_MemberPress::MEMBERPRESS_COMMISSION_ENABLED, 'memberpress', 'MemberPress');
29 // Membership 2 Pro
30 $this->addCheckbox(postaffiliatepro_Form_Settings_Membership2::MEMBERSHIP2_COMMISSION_ENABLED);
31 $this->imageTpl(postaffiliatepro_Form_Settings_Membership2::MEMBERSHIP2_COMMISSION_ENABLED, 'ms2pro', 'Membership 2 Pro');
32 // PayPal Buy Now Button
33 $this->addCheckbox(postaffiliatepro_Form_Settings_PPBuyNowButton::WPECPP_COMMISSION_ENABLED);
34 $this->imageTpl(postaffiliatepro_Form_Settings_PPBuyNowButton::WPECPP_COMMISSION_ENABLED, 'paypal', 'PayPal Buy Now Button');
35 // PMPro
36 $this->addCheckbox(postaffiliatepro_Form_Settings_PMPro::PMPRO_COMMISSION_ENABLED);
37 $this->imageTpl(postaffiliatepro_Form_Settings_PMPro::PMPRO_COMMISSION_ENABLED, 'pmpro', 'Post Membership Pro');
38 // Recstrict Content Pro
39 $this->addCheckbox(postaffiliatepro_Form_Settings_RestrictContentPro::RESTRICTCP_COMMISSION_ENABLED);
40 $this->imageTpl(postaffiliatepro_Form_Settings_RestrictContentPro::RESTRICTCP_COMMISSION_ENABLED, 'rcppap', 'Restrict Content Pro');
41 // s2Member
42 $this->addCheckbox(postaffiliatepro_Form_Settings_S2Member::S2MEMBER_COMMISSION_ENABLED);
43 $this->imageTpl(postaffiliatepro_Form_Settings_S2Member::S2MEMBER_COMMISSION_ENABLED, 's2member', 's2Member');
44 // Simple Pay Pro
45 $this->addCheckbox(postaffiliatepro_Form_Settings_SimplePayPro::SIMPLEPAYPRO_COMMISSION_ENABLED);
46 $this->imageTpl(postaffiliatepro_Form_Settings_SimplePayPro::SIMPLEPAYPRO_COMMISSION_ENABLED, 'spp', 'Simple Pay Pro');
47 // Stripe Payments
48 $this->addCheckbox(postaffiliatepro_Form_Settings_StripePayments::STRIPEPAYMENTS_COMMISSION_ENABLED);
49 $this->imageTpl(postaffiliatepro_Form_Settings_StripePayments::STRIPEPAYMENTS_COMMISSION_ENABLED, 'stripepay', 'Stripe Payments');
50 // SureCart
51 $this->addCheckbox(postaffiliatepro_Form_Settings_SureCart::SURECART_COMMISSION_ENABLED);
52 $this->imageTpl(postaffiliatepro_Form_Settings_SureCart::SURECART_COMMISSION_ENABLED, 'surecart', 'SureCart');
53 // WishList Member
54 $this->addCheckbox(postaffiliatepro_Form_Settings_WishListMember::WLM_COMMISSION_ENABLED);
55 $this->imageTpl(postaffiliatepro_Form_Settings_WishListMember::WLM_COMMISSION_ENABLED, 'wlm', 'WishList Member');
56 // WooComm
57 $this->addCheckbox(postaffiliatepro_Form_Settings_WooComm::WOOCOMM_COMMISSION_ENABLED);
58 $this->imageTpl(postaffiliatepro_Form_Settings_WooComm::WOOCOMM_COMMISSION_ENABLED, 'woo', 'WooCommerce');
59 // WP EasyCart
60 $this->addCheckbox(postaffiliatepro_Form_Settings_WPEasyCart::WPEC_COMMISSION_ENABLED);
61 $this->imageTpl(postaffiliatepro_Form_Settings_WPEasyCart::WPEC_COMMISSION_ENABLED, 'wpec', 'WP EasyCart');
62 // WPPayForms
63 $this->addCheckbox(postaffiliatepro_Form_Settings_WPPayForms::WPPF_COMMISSION_ENABLED);
64 $this->imageTpl(postaffiliatepro_Form_Settings_WPPayForms::WPPF_COMMISSION_ENABLED, 'wppf', 'WPPayForms');
65
66 $this->addSubmit();
67 }
68
69 private function imageTpl($optionName, $imgName, $alt) {
70 $style = '';
71 if ($this->getOption($optionName) !== 'true') {
72 $style = 'class="greyedOut" ';
73 }
74 $img = '<img width="128" height="128" '.$style.'src="../wp-content/plugins/postaffiliatepro/resources/img/'.
75 $imgName.'.png" alt="'.$alt.' logo" />';
76 $this->addVariable('img-'.$imgName, $img);
77 return true;
78 }
79 }