/
home
/
techb158
/
primomovers.ca
/
wp-content
/
plugins
/
everest-forms
/
includes
/
/home/techb158/primomovers.ca/wp-content/plugins/everest-forms/includes
mkdir
upload
Name
Size
Mode
Actions
abilities/
-
0755
rm
abstracts/
-
0755
rm
admin/
-
0755
rm
blocks/
-
0755
rm
elementor/
-
0755
rm
export/
-
0755
rm
fields/
-
0755
rm
Helpers/
-
0755
rm
Integrations/
-
0755
rm
interfaces/
-
0755
rm
libraries/
-
0755
rm
log-handlers/
-
0755
rm
RestApi/
-
0755
rm
shortcodes/
-
0755
rm
stats/
-
0755
rm
templates/
-
0755
rm
traits/
-
0755
rm
class-everest-forms.php
15147
0644
edit
dl
rm
class-evf-addon-upsell.php
10592
0644
edit
dl
rm
class-evf-ajax.php
78822
0644
edit
dl
rm
class-evf-autoloader.php
1968
0644
edit
dl
rm
class-evf-background-process-import-entries.php
5276
0644
edit
dl
rm
class-evf-background-updater.php
3351
0644
edit
dl
rm
class-evf-cache-helper.php
2416
0644
edit
dl
rm
class-evf-cron.php
1871
0644
edit
dl
rm
class-evf-deprecated-action-hooks.php
4008
0644
edit
dl
rm
class-evf-deprecated-filter-hooks.php
3729
0644
edit
dl
rm
class-evf-email-entries-report.php
11878
0644
edit
dl
rm
class-evf-emails.php
20134
0644
edit
dl
rm
class-evf-fields.php
4828
0644
edit
dl
rm
class-evf-form-handler.php
16780
0644
edit
dl
rm
class-evf-form-task.php
95466
0644
edit
dl
rm
class-evf-forms-features.php
1957
0644
edit
dl
rm
class-evf-frontend-scripts.php
17399
0644
edit
dl
rm
class-evf-install.php
21513
0644
edit
dl
rm
class-evf-integrations.php
6943
0644
edit
dl
rm
class-evf-log-levels.php
2674
0644
edit
dl
rm
class-evf-logger.php
8471
0644
edit
dl
rm
class-evf-post-types.php
5254
0644
edit
dl
rm
class-evf-privacy.php
7587
0644
edit
dl
rm
class-evf-report-cron.php
6689
0644
edit
dl
rm
class-evf-reporting.php
1201
0644
edit
dl
rm
class-evf-session-handler.php
8211
0644
edit
dl
rm
class-evf-shortcodes.php
2084
0644
edit
dl
rm
class-evf-smart-tags.php
20742
0644
edit
dl
rm
class-evf-template-loader.php
14643
0644
edit
dl
rm
class-evf-validation.php
934
0644
edit
dl
rm
evf-conditional-functions.php
1242
0644
edit
dl
rm
evf-core-functions.php
201575
0644
edit
dl
rm
evf-deprecated-functions.php
6365
0644
edit
dl
rm
evf-entry-functions.php
9367
0644
edit
dl
rm
evf-formatting-functions.php
15958
0644
edit
dl
rm
evf-notice-functions.php
6378
0644
edit
dl
rm
evf-template-functions.php
1225
0644
edit
dl
rm
evf-template-hooks.php
439
0644
edit
dl
rm
evf-update-functions.php
10203
0644
edit
dl
rm
Edit:
/home/techb158/primomovers.ca/wp-content/plugins/everest-forms/includes/class-evf-addon-upsell.php
(10592B)
<?php /** * EverestForms Addon Upsell * * @package EverestForms\Admin * @version 1.0.0 */ defined( 'ABSPATH' ) || exit; /** * EVF_Addon_Upsell. */ class EVF_Addon_Upsell { /** * Get addon registry. * * @return array */ private static function get_registry() { if ( defined( 'EFP_PLUGIN_FILE' ) ) { return array(); } return apply_filters( 'everest_forms_addon_upsell_registry', array( 'pdf_submission' => array( 'category' => 'utilities', 'label' => esc_html__( 'PDF Submission', 'everest-forms' ), 'icon' => plugins_url( 'assets/extensions-json/sections/images/pdf-submission.png', EVF_PLUGIN_FILE ), 'description' => esc_html__( 'Generate beautiful PDFs from form submissions and send them via email.', 'everest-forms' ), 'active_check' => 'EVF_PDF_SUBMISSION_VERSION', 'vedio_id' => '37CtaxJzYis', 'upgrade_url' => 'https://wpeverest.com/wordpress-plugins/everest-forms/pricing/', 'docs_url' => 'https://docs.everestforms.net/docs/pdf-form-submission/', 'features' => array( esc_html__( 'Send submitted form data as a PDF attachment', 'everest-forms' ), esc_html__( 'Print or share submission details more easily', 'everest-forms' ), esc_html__( 'Store important form data in a professional format ', 'everest-forms' ), esc_html__( 'Make record-keeping much simpler', 'everest-forms' ), ), ), 'user_registration' => array( 'category' => 'utilities', 'label' => esc_html__( 'User Registration', 'everest-forms' ), 'icon' => plugins_url( 'assets/extensions-json/sections/images/user-registration.png', EVF_PLUGIN_FILE ), 'description' => esc_html__( 'Register WordPress users and enable social login directly from your forms.', 'everest-forms' ), 'vedio_id' => 'MEyuznG2Tok', 'active_check' => 'EverestForms\\Pro\\Addons\\UserRegistration\\UserRegistration', 'upgrade_url' => 'https://wpeverest.com/wordpress-plugins/everest-forms/pricing/', 'docs_url' => 'https://docs.everestforms.net/docs/user-registration/', 'features' => array( esc_html__( 'Let people register from the front end of your site ', 'everest-forms' ), esc_html__( 'Create WordPress user accounts from form submissions', 'everest-forms' ), esc_html__( 'Map form fields to user account details', 'everest-forms' ), esc_html__( 'Use one form for both data collection and signup', 'everest-forms' ), ), ), 'paypal_standard' => array( 'category' => 'payments', 'label' => esc_html__( 'PayPal Standard', 'everest-forms' ), 'icon' => plugins_url( 'assets/extensions-json/sections/images/payment-paypal.png', EVF_PLUGIN_FILE ), 'description' => esc_html__( 'Accept one-time and recurring payments via PayPal.', 'everest-forms' ), 'active_check' => 'EVF_PAYPAL_STANDARD_VERSION', 'vedio_id' => 'pcwPjCt7N2I', 'upgrade_url' => 'https://wpeverest.com/wordpress-plugins/everest-forms/pricing/', 'docs_url' => 'https://docs.everestforms.net/docs/paypal-standard/', 'features' => array( esc_html__( 'One-time payments and recurring subscriptions', 'everest-forms' ), esc_html__( 'Trusted buyer protection and established security', 'everest-forms' ), esc_html__( 'Multiple subscription plans with trial periods', 'everest-forms' ), ), ), 'stripe' => array( 'category' => 'payments', 'label' => esc_html__( 'Stripe', 'everest-forms' ), 'icon' => plugins_url( 'assets/extensions-json/sections/images/payment-stripe.png', EVF_PLUGIN_FILE ), 'description' => esc_html__( 'Process one-time and recurring charges securely via Stripe.', 'everest-forms' ), 'active_check' => 'EVF_STRIPE_VERSION', 'vedio_id' => 'wZXnaxLxdz4', 'upgrade_url' => 'https://wpeverest.com/wordpress-plugins/everest-forms/pricing/', 'docs_url' => 'https://docs.everestforms.net/docs/stripe/', 'features' => array( esc_html__( 'One-time charges and recurring subscriptions with trials', 'everest-forms' ), esc_html__( 'SCA compliant for EU payment regulation', 'everest-forms' ), esc_html__( 'Accepts credit cards and iDEAL payments', 'everest-forms' ), esc_html__( 'Map form fields to Stripe customer profile', 'everest-forms' ), ), ), 'square' => array( 'category' => 'payments', 'label' => esc_html__( 'Square', 'everest-forms' ), 'icon' => plugins_url( 'assets/extensions-json/sections/images/square-payment.png', EVF_PLUGIN_FILE ), 'description' => esc_html__( 'Accept Square payments directly inside your WordPress forms.', 'everest-forms' ), 'active_check' => 'EVF_SQUARE_VERSION', 'vedio_id' => '5ymZV-S0mMs', 'upgrade_url' => 'https://wpeverest.com/wordpress-plugins/everest-forms/pricing/', 'docs_url' => 'https://docs.everestforms.net/docs/square/', 'features' => array( esc_html__( 'On-site payments — no off-site redirect', 'everest-forms' ), esc_html__( 'Sandbox and production credentials supported', 'everest-forms' ), esc_html__( 'Test Mode toggle for safe pre-launch testing', 'everest-forms' ), esc_html__( 'Map form fields to Square customer details', 'everest-forms' ), ), ), 'authorize_net' => array( 'category' => 'payments', 'label' => esc_html__( 'Authorize.Net', 'everest-forms' ), 'icon' => plugins_url( 'assets/extensions-json/sections/images/authorize-net.png', EVF_PLUGIN_FILE ), 'description' => esc_html__( 'Accept credit cards and recurring subscriptions via Authorize.Net.', 'everest-forms' ), 'active_check' => 'EVF_AUTHORIZE_NET_VERSION', 'vedio_id' => 'a5EcKjwWD1A', 'upgrade_url' => 'https://wpeverest.com/wordpress-plugins/everest-forms/pricing/', 'docs_url' => 'https://docs.everestforms.net/docs/authorize-net/', 'features' => array( esc_html__( 'On-site card processing — users never leave your site', 'everest-forms' ), esc_html__( 'Recurring billing with customizable plans and schedules', 'everest-forms' ), esc_html__( 'Live and sandbox modes for safe testing', 'everest-forms' ), esc_html__( 'Map form fields to customer billing details', 'everest-forms' ), ), ), 'razorpay' => array( 'category' => 'payments', 'label' => esc_html__( 'Razorpay', 'everest-forms' ), 'icon' => plugins_url( 'assets/extensions-json/sections/images/Razorpay.png', EVF_PLUGIN_FILE ), 'description' => esc_html__( 'Accept cards, net banking, and mobile wallets — ideal for India.', 'everest-forms' ), 'active_check' => 'EVF_RAZORPAY_VERSION', 'vedio_id' => '2Og6b1JXDWs', 'upgrade_url' => 'https://wpeverest.com/wordpress-plugins/everest-forms/pricing/', 'docs_url' => 'https://docs.everestforms.net/docs/razorpay/', 'features' => array( esc_html__( 'Cards, net banking, and Indian mobile wallets', 'everest-forms' ), esc_html__( 'Coupon code support for payment discounts', 'everest-forms' ), esc_html__( 'Separate test and live API credentials', 'everest-forms' ), esc_html__( 'Industry-standard encryption for secure processing', 'everest-forms' ), ), ), 'mollie' => array( 'category' => 'payments', 'label' => esc_html__( 'Mollie', 'everest-forms' ), 'icon' => plugins_url( 'assets/extensions-json/sections/images/Mollie.png', EVF_PLUGIN_FILE ), 'description' => esc_html__( 'Accept payments and recurring subscriptions via Mollie.', 'everest-forms' ), 'active_check' => 'EVF_MOLLIE_VERSION', 'vedio_id' => 'r263krbqzfo', 'upgrade_url' => 'https://wpeverest.com/wordpress-plugins/everest-forms/pricing/', 'docs_url' => 'https://docs.everestforms.net/docs/mollie/', 'features' => array( esc_html__( 'Recurring billing for memberships and services', 'everest-forms' ), esc_html__( 'Map form fields to subscription customer details', 'everest-forms' ), esc_html__( 'Custom confirmation page after payment', 'everest-forms' ), esc_html__( 'Test and live modes for development and production', 'everest-forms' ), ), ), ) ); } /** * Check whether an addon is currently active. * * @param string $active_check Constant name or fully-qualified class name. * @return bool */ private static function is_active( $active_check ) { if ( empty( $active_check ) ) { return false; } return defined( $active_check ) || class_exists( $active_check ); } /** * Build a upsell entry from a registry config. * * @param array $config Registry config. * @return array */ private static function build_upsell( array $config ) { return array( 'label' => $config['label'], 'upsell' => true, 'icon' => $config['icon'] ?? '', 'description' => $config['description'] ?? '', 'vedio_id' => $config['vedio_id'] ?? '', 'upgrade_url' => $config['upgrade_url'] ?? 'https://wpeverest.com/wordpress-plugins/everest-forms/pricing/', 'docs_url' => $config['docs_url'] ?? 'https://docs.everestforms.net/docs/', 'features' => $config['features'] ?? array(), ); } /** * Get upsell entries for addons in a given category. * * @param string $category Category key e.g. 'utilities', 'payments'. * @param bool $check_active Skip entries whose addon is already active when true. * @return array */ public static function get_upsells_for_category( $category, $check_active = true ) { $upsells = array(); foreach ( self::get_registry() as $id => $config ) { if ( $config['category'] !== $category ) { continue; } if ( $check_active && self::is_active( $config['active_check'] ) ) { continue; } $upsells[ $id ] = self::build_upsell( $config ); } return $upsells; } /** * Get upsell entries for all inactive addons across every category. * * @return array */ public static function get_all_upsells() { $upsells = array(); foreach ( self::get_registry() as $id => $config ) { if ( self::is_active( $config['active_check'] ) ) { continue; } $upsell = self::build_upsell( $config ); $upsell['category'] = $config['category']; $upsells[ $id ] = $upsell; } return $upsells; } }
Save
cmd:
run