| Server IP : 103.249.100.196 / Your IP : 216.73.216.194 Web Server : Apache System : Linux cp196.maytech.vn 5.14.0-687.66.2.el9_8.x86_64 #1 SMP PREEMPT_DYNAMIC Fri Nov 6 16:20:31 EST 2026 x86_64 User : dlsafepha ( 1078) PHP Version : 8.2.36 Disable Function : exec,passthru,shell_exec,system MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : /home2/./dlsafepha/public_html/wp-content/plugins/popup-maker/classes/Abstract/Integration/ |
Upload File : |
<?php
/**
* Abstract for Integration Form
*
* @package PopupMaker
* @copyright Copyright (c) 2024, Code Atlantic LLC
*/
/**
* Abstract for Form Integration
*/
abstract class PUM_Abstract_Integration_Form extends PUM_Abstract_Integration implements PUM_Interface_Integration_Form {
/**
* @var string
*/
public $type = 'form';
/**
* @return array
*/
abstract public function get_forms();
/**
* @param string $id
*
* @return mixed
*/
abstract public function get_form( $id );
/**
* @return array
*/
abstract public function get_form_selectlist();
/**
* @param array $js
*
* @return array
*/
public function custom_scripts( $js = [] ) {
return $js;
}
/**
* @param array $css
*
* @return array
*/
public function custom_styles( $css = [] ) {
return $css;
}
/**
* Retrieves the popup ID associated with the form, if any
*
* @return false|int
* @since 1.13.0
*/
public function get_popup_id() {
// Ignored because this piggy backs on the nonce check in the form submission handler, and only allows for absint or false.
// phpcs:ignore WordPress.Security.NonceVerification.Recommended
$popup_id = isset( $_REQUEST['pum_form_popup_id'] ) ? absint( $_REQUEST['pum_form_popup_id'] ) : false;
return $popup_id > 0 ? $popup_id : false;
}
/**
* Increase the conversion count for popup
*
* @param int $popup_id The ID for the popup.
* @since 1.13.0
*/
public function increase_conversion( $popup_id ) {
$popup_id = intval( $popup_id );
$popup = pum_get_popup( $popup_id );
$popup->increase_event_count( 'conversion' );
}
/**
* Returns whether or not we should process any form submissions
*
* @return bool True if we should process the form submission
* @since 1.13.0
*/
public function should_process_submission() {
if ( wp_doing_ajax() || defined( 'REST_REQUEST' ) ) {
return false;
}
return true;
}
}