![]() Server : Apache System : Linux server2.corals.io 4.18.0-348.2.1.el8_5.x86_64 #1 SMP Mon Nov 15 09:17:08 EST 2021 x86_64 User : corals ( 1002) PHP Version : 7.4.33 Disable Function : exec,passthru,shell_exec,system Directory : /home/corals/gg.corals.io/wp-content/plugins/trx_addons/components/api/give/ |
<?php /** * Plugin support: Give (WPBakery support) * * @package WordPress * @subpackage ThemeREX Addons * @since v1.6.50 */ // Don't load directly if ( ! defined( 'TRX_ADDONS_VERSION' ) ) { die( '-1' ); } // Add [trx_addons_give_form] in the VC shortcodes list if (!function_exists('trx_addons_sc_give_add_in_vc')) { function trx_addons_sc_give_add_in_vc() { if (!trx_addons_exists_vc() || !trx_addons_exists_give()) return; vc_lean_map( "give_form", 'trx_addons_sc_give_add_in_vc_params'); class WPBakeryShortCode_Trx_Addons_Give_Form extends WPBakeryShortCode {} } add_action('init', 'trx_addons_sc_give_add_in_vc', 20); } // Return params for [trx_addons_give_form] if (!function_exists('trx_addons_sc_give_add_in_vc_params')) { function trx_addons_sc_give_add_in_vc_params() { return apply_filters('trx_addons_sc_map', array( "base" => "give_form", "name" => esc_html__("Give donation form", "trx_addons"), "description" => esc_html__("Insert Give Donation form", "trx_addons"), "category" => esc_html__('Content', 'trx_addons'), 'icon' => 'icon_trx_sc_give_forms', "class" => "trx_sc_single trx_sc_give_forms", "content_element" => true, "is_container" => false, "show_settings_on_create" => true, "params" => array( array( "param_name" => "id", "heading" => esc_html__("Donation form", "trx_addons"), "description" => esc_html__("Select Form to insert to the current page", "trx_addons"), "admin_label" => true, 'save_always' => true, "value" => array_flip(trx_addons_get_list_give_forms()), "type" => "dropdown" ) ) ), 'trx_addons_give_form'); } }