$key;
?>
$key;
?>
$key;
$attr_width = $full_width ? 'width: 100%;' : '';
?>
$key;
?>
$key;
$classes = array( 'custom-switch' );
if ( $disabled ) {
$attr_value = false;
$classes[] = 'disabled';
}
$classes = implode( ' ', $classes );
?>
id="" class="custom-switch-input">
getFacebookParam( $key );
} else {
$attr_name = "pys[event][$key]";
$attr_id = 'pys_event_' . $key;
$attr_value = $event->$key;
}
$attr_width = $full_width ? 'width: 100%;' : '';
?>
'Page visit',
'url_click' => 'Click on HTML link - PRO',
'css_click' => 'Click on CSS selector - PRO',
'css_mouseover' => 'Mouse over CSS selector - PRO',
'scroll_pos' => 'Page Scroll - PRO',
'post_type' => 'Post type - PRO',
);
$eventsFormFactory = apply_filters("pys_form_event_factory",[]);
foreach ($eventsFormFactory as $activeFormPlugin) :
$options[$activeFormPlugin->getSlug()] = $activeFormPlugin->getName().' - PRO';
endforeach;
renderSelectInput( $event, $key, $options );
}
/**
* @param CustomEvent $event
* @param string $key
*/
function renderPostTypeSelect(&$event, $key) {
$types = get_post_types(null,"objects ");
$options = array();
foreach ($types as $type) {
$options[$type->name]=$type->label;
}
renderSelectInput( $event, $key, $options );
}
/**
* @param CustomEvent $event
* @param string $key
*/
function renderCurrencyParamInput( &$event, $key ) {
$currencies = array(
'AUD' => 'Australian Dollar',
'BRL' => 'Brazilian Real',
'CAD' => 'Canadian Dollar',
'CZK' => 'Czech Koruna',
'DKK' => 'Danish Krone',
'EUR' => 'Euro',
'HKD' => 'Hong Kong Dollar',
'HUF' => 'Hungarian Forint',
'IDR' => 'Indonesian Rupiah',
'ILS' => 'Israeli New Sheqel',
'JPY' => 'Japanese Yen',
'KRW' => 'Korean Won',
'MYR' => 'Malaysian Ringgit',
'MXN' => 'Mexican Peso',
'NOK' => 'Norwegian Krone',
'NZD' => 'New Zealand Dollar',
'PHP' => 'Philippine Peso',
'PLN' => 'Polish Zloty',
'RON' => 'Romanian Leu',
'GBP' => 'Pound Sterling',
'SGD' => 'Singapore Dollar',
'SEK' => 'Swedish Krona',
'CHF' => 'Swiss Franc',
'TWD' => 'Taiwan New Dollar',
'THB' => 'Thai Baht',
'TRY' => 'Turkish Lira',
'USD' => 'U.S. Dollar',
'ZAR' => 'South African Rands'
);
$currencies = apply_filters( 'pys_currencies_list', $currencies );
$options[''] = 'Please, select...';
$options = array_merge( $options, $currencies );
$options['disabled'] = '';
$options['custom'] = 'Custom currency';
renderSelectInput( $event, $key, $options, true );
}
/**
* @param CustomEvent $event
* @param string $key
*/
function renderFacebookEventTypeInput( &$event, $key ) {
$options = array(
'ViewContent' => 'ViewContent',
'AddToCart' => 'AddToCart',
'AddToWishlist' => 'AddToWishlist',
'InitiateCheckout' => 'InitiateCheckout',
'AddPaymentInfo' => 'AddPaymentInfo',
'Purchase' => 'Purchase',
'Lead' => 'Lead',
'CompleteRegistration' => 'CompleteRegistration',
'Subscribe' => 'Subscribe',
'CustomizeProduct' => 'CustomizeProduct',
'FindLocation' => 'FindLocation',
'StartTrial' => 'StartTrial',
'SubmitApplication' => 'SubmitApplication',
'Schedule' => 'Schedule',
'Contact' => 'Contact',
'Donate' => 'Donate',
'disabled' => '',
'CustomEvent' => 'CustomEvent',
);
renderSelectInput( $event, $key, $options );
}
/**
* @param CustomEvent $event
* @param string $key
*/
function renderFacebookParamInput( &$event, $key ) {
$attr_name = "pys[event][facebook_params][$key]";
$attr_id = 'pys_event_facebook_' . $key;
$attr_value = $event->getFacebookParam( $key );
?>
'Custom Action',
'disabled' => '',
'add_payment_info' => 'add_payment_info',
'add_to_cart' => 'add_to_cart',
'add_to_wishlist' => 'add_to_wishlist',
'begin_checkout' => 'begin_checkout',
'checkout_progress' => 'checkout_progress',
'generate_lead' => 'generate_lead',
'login' => 'login',
'purchase' => 'purchase',
'refund' => 'refund',
'remove_from_cart' => 'remove_from_cart',
'search' => 'search',
'select_content' => 'select_content',
'set_checkout_option' => 'set_checkout_option',
'share' => 'share',
'sign_up' => 'sign_up',
'view_item' => 'view_item',
'view_item_list' => 'view_item_list',
'view_promotion' => 'view_promotion',
'view_search_results' => 'view_search_results',
);
renderSelectInput( $event, $key, $options, true );
}
/**
* @param CustomEvent $event
* @param string $key
*/
function renderGoogleAnalyticsV4ActionInput( &$event, $key ) {
renderGroupSelectInput( $event, $key, $event->GAEvents, false );
}
/**
* @param CustomEvent $event
* @param string $key
*/
function renderPinterestEventTypeInput( &$event, $key ) {
$options = array(
'pagevisit' => 'PageVisit',
'viewcategory' => 'ViewCategory',
'search' => 'Search',
'addtocart' => 'AddToCart',
'checkout' => 'Checkout',
'watchvideo' => 'WatchVideo',
'signup' => 'Signup',
'lead' => 'Lead',
'custom' => 'Custom',
'disabled' => '',
'CustomEvent' => 'Partner Defined',
);
renderSelectInput( $event, $key, $options );
}