Server : Apache System : Linux server.lienzindia.com 4.18.0-348.7.1.el8_5.x86_64 #1 SMP Wed Dec 22 13:25:12 UTC 2021 x86_64 User : plutus ( 1007) PHP Version : 7.4.33 Disable Function : NONE Directory : /home/plutus/public_html/wp-content/themes/vrm/inc/integration/ |
Upload File : |
<?php namespace TotalTheme\Integration; \defined( 'ABSPATH' ) || exit; /** * Gravity Forms Integration. * * @todo double check styles incase they need updating or remove completely. */ final class Gravity_Forms { /** * Instance. */ private static $instance; /** * Create or retrieve the instance of Gravity_Forms. */ public static function instance() { if ( is_null( static::$instance ) ) { static::$instance = new self(); } return static::$instance; } /** * Constructor. */ public function __construct() { if ( \wpex_is_request( 'frontend' ) && \apply_filters( 'wpex_gravity_forms_css', true ) ) { \add_action( 'wp_enqueue_scripts', [ $this, 'gravity_forms_css' ], 40 ); } } /** * Loads Gravity Forms stylesheet. */ public function gravity_forms_css() { global $post; if ( \is_a( $post, 'WP_Post' ) && \has_shortcode( $post->post_content, 'gravityform' ) ) { \wp_enqueue_style( 'wpex-gravity-forms', \wpex_asset_url( 'css/wpex-gravity-forms.css' ), [], \WPEX_THEME_VERSION ); } } }