HEX
Server: Apache/2.4.52 (Ubuntu)
System: Linux spn-python 5.15.0-89-generic #99-Ubuntu SMP Mon Oct 30 20:42:41 UTC 2023 x86_64
User: arjun (1000)
PHP: 8.1.2-1ubuntu2.20
Disabled: NONE
Upload Files
File: /var/www/html/triad-infosec/wp-content/themes/Avada/includes/typography/wpcf7_typography.php
<?php
/**
 * This file contains typography styles for WPCF plugin.
 *
 * @author     ThemeFusion
 * @copyright  (c) Copyright by ThemeFusion
 * @link       https://avada.com
 * @package    Avada
 * @subpackage Core
 * @since      5.0.0
 */

// Do not allow directly accessing this file.
if ( ! defined( 'ABSPATH' ) ) {
	exit( 'Direct script access denied.' );
}

/**
 * WPCF7 css classes that inherit Avada's body typography settings.
 *
 * @param array $typography_elements An array of all typography elements.
 * @return array
 */
function avada_wpcf7_body_typography( $typography_elements ) {
	if ( defined( 'WPCF7_PLUGIN' ) ) {
		$typography_elements['family'][] = '.wpcf7-form input[type="submit"]';
	}

	return $typography_elements;
}
add_filter( 'avada_body_typography_elements', 'avada_wpcf7_body_typography' );

/**
 * WPCF7 css classes that inherit Avada's button typography settings.
 *
 * @param array $typography_elements An array of all typography elements.
 * @return array
 */
function avada_wpcf7_button_typography( $typography_elements ) {
	if ( defined( 'WPCF7_PLUGIN' ) ) {
		$typography_elements['family'][] = '.wpcf7-form input[type="submit"]';
	}

	return $typography_elements;
}
add_filter( 'avada_button_typography_elements', 'avada_wpcf7_button_typography' );

/* Omit closing PHP tag to avoid "Headers already sent" issues. */