767, 'tablet' => 1024, ); if ( class_exists( '\Elementor\Plugin' ) && isset( \Elementor\Plugin::$instance->breakpoints ) ) { $config = \Elementor\Plugin::$instance->breakpoints->get_breakpoints_config(); if ( isset( $config['mobile']['value'] ) ) { $breakpoints['mobile'] = (int) $config['mobile']['value']; } if ( isset( $config['tablet']['value'] ) ) { $breakpoints['tablet'] = (int) $config['tablet']['value']; } } wp_localize_script( 'buildify-frontend', 'buildifyFrontend', array( 'breakpoints' => $breakpoints, 'i18n' => array( 'copied' => __( 'Link copied', 'buildify' ), 'loading' => __( 'Loading…', 'buildify' ), 'noMore' => __( 'No more items', 'buildify' ), 'openMenu' => __( 'Open menu', 'buildify' ), ), ) ); wp_localize_script( 'buildify-popups', 'buildifyPopupsConfig', array( 'trackUrl' => esc_url_raw( rest_url( Rest_Api::NAMESPACE_V1 . '/popups/' ) ), 'stats' => Popup_Stats::enabled(), 'breakpoints' => $breakpoints, 'isEditor' => Helpers::is_editor(), ) ); } /** * Styles for the editor panel. */ public function editor_styles() { wp_enqueue_style( 'buildify-editor', self::url( 'css/editor', 'css' ), array(), BUILDIFY_VERSION ); } /** * Styles for the editor preview. */ public function preview_styles() { $this->register(); wp_enqueue_style( 'buildify-frontend' ); wp_enqueue_style( 'buildify-popups' ); wp_enqueue_script( 'buildify-frontend' ); } }