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
ClickTracking.class.php
34 lines
| 1 | <?php |
| 2 | if (!defined('ABSPATH')) exit; |
| 3 | |
| 4 | class postaffiliatepro_Form_Settings_ClickTracking extends postaffiliatepro_Form_Base { |
| 5 | public function __construct() { |
| 6 | parent::__construct(postaffiliatepro::CLICK_TRACKING_SETTINGS_PAGE_NAME, 'options.php'); |
| 7 | } |
| 8 | |
| 9 | protected function getTemplateFile() { |
| 10 | return WP_PLUGIN_DIR . '/postaffiliatepro/Template/ClickTrackingSettings.xtpl'; |
| 11 | } |
| 12 | |
| 13 | protected function initForm() { |
| 14 | $this->addCheckbox(postaffiliatepro::CLICK_TRACKING_ENABLED_SETTING_NAME); |
| 15 | |
| 16 | $campaignHelper = new postaffiliatepro_Util_CampaignHelper(); |
| 17 | $campaignList = $campaignHelper->getCampaignsList(); |
| 18 | |
| 19 | $campaigns = array('0' => ' '); |
| 20 | foreach ($campaignList as $row) { |
| 21 | $campaigns[$row->get('campaignid')] = htmlspecialchars($row->get('name')); |
| 22 | } |
| 23 | $this->addSelect(postaffiliatepro::CLICK_TRACKING_CAMPAIGN, $campaigns); |
| 24 | |
| 25 | $this->addSubmit(); |
| 26 | } |
| 27 | |
| 28 | protected function getOption($name, $type = 'none') { |
| 29 | if ($name === postaffiliatepro::CLICK_TRACKING_ACCOUNT_SETTING_NAME) { |
| 30 | return self::getAccountName(); |
| 31 | } |
| 32 | return parent::getOption($name); |
| 33 | } |
| 34 | } |