PATH:
home
/
letacommog
/
laindinois
/
wp-content
/
plugins
/
jscomposer
/
include
/
classes
/
vendors
/
plugins
<?php if ( ! defined( 'ABSPATH' ) ) { die( '-1' ); } /** * Vendor class for plugin advanced custom fields, * Needed to apply extra js when backend/frontend editor rendered. * Class Vc_Vendor_AdvancedCustomFields * @since 4.3.3 */ class Vc_Vendor_AdvancedCustomFields implements Vc_Vendor_Interface { /** * Initializing actions when backend/frontend editor renders to enqueue fix-js file * @since 4.3.3 */ public function load() { if ( did_action( 'vc-vendor-acf-load' ) ) { return; } /** * Action when backend editor is rendering * @see Vc_Backend_Editor::renderEditor wp-content/plugins/js_composer/include/classes/editors/class-vc-backend-editor.php */ add_action( 'vc_backend_editor_render', array( $this, 'enqueueJs', ) ); /** * Action when frontend editor is rendering * @see Vc_Frontend_Editor::renderEditor wp-content/plugins/js_composer/include/classes/editors/class-vc-frontend-editor.php */ add_action( 'vc_frontend_editor_render', array( $this, 'enqueueJs', ) ); add_filter( 'vc_grid_item_shortcodes', array( $this, 'mapGridItemShortcodes', ) ); add_action( 'vc_after_mapping', array( $this, 'mapEditorsShortcodes', ) ); do_action( 'vc-vendor-acf-load', $this ); } /** * Small fix for editor when try to change field * @since 4.3.3 */ public function enqueueJs() { wp_enqueue_script( 'vc_vendor_acf', vc_asset_url( 'js/vendors/advanced_custom_fields.js' ), array( 'jquery' ), '1.0', true ); } public function mapGridItemShortcodes( array $shortcodes ) { require_once vc_path_dir( 'VENDORS_DIR', 'plugins/acf/class-vc-gitem-acf-shortcode.php' ); require_once vc_path_dir( 'VENDORS_DIR', 'plugins/acf/grid-item-attributes.php' ); $wc_shortcodes = include vc_path_dir( 'VENDORS_DIR', 'plugins/acf/grid-item-shortcodes.php' ); return $shortcodes + $wc_shortcodes; } public function mapEditorsShortcodes() { require_once vc_path_dir( 'VENDORS_DIR', 'plugins/acf/class-vc-acf-shortcode.php' ); vc_lean_map( 'vc_acf', null, vc_path_dir( 'VENDORS_DIR', 'plugins/acf/shortcode.php' ) ); } }
[+]
..
[-] class-vc-vendor-contact-form7.php
[edit]
[-] class-vc-vendor-yoast_seo.php
[edit]
[-] class-vc-vendor-revslider.php
[edit]
[-] class-vc-vendor-qtranslate-x.php
[edit]
[-] class-vc-vendor-jwplayer.php
[edit]
[-] class-vc-vendor-mqtranslate.php
[edit]
[-] class-vc-vendor-qtranslate.php
[edit]
[+]
acf
[-] class-vc-vendor-ninja-forms.php
[edit]
[-] class-vc-vendor-woocommerce.php
[edit]
[-] class-vc-vendor-advanced-custom-fields.php
[edit]
[+]
woocommerce
[-] class-vc-vendor-wpml.php
[edit]
[-] class-vc-vendor-layerslider.php
[edit]