File: /var/www/html/triad-infosec/wp-content/themes/Avada/includes/options/bbpress.php
<?php
/**
* Avada Options.
*
* @author ThemeFusion
* @copyright (c) Copyright by ThemeFusion
* @link https://avada.com
* @package Avada
* @subpackage Core
* @since 4.0.0
*/
// Do not allow directly accessing this file.
if ( ! defined( 'ABSPATH' ) ) {
exit( 'Direct script access denied.' );
}
/**
* Color settings
*
* @param array $sections An array of our sections.
* @return array
*/
function avada_options_section_bbpress( $sections ) {
if ( ! Avada::$is_updating && ! class_exists( 'bbPress' ) && ! class_exists( 'BuddyPress' ) ) {
return $sections;
}
$sections['bbpress'] = array(
'label' => esc_html__( 'bbPress', 'Avada' ),
'id' => 'bpress_section',
'priority' => 3,
'icon' => 'el-icon-person',
'alt_icon' => 'fusiona-user',
'fields' => array(
'bbp_forum_base_font_size' => array(
'label' => esc_html__( 'bbPress Forum Base Font Size', 'Avada' ),
'description' => esc_html__( 'Controls the base font size for replies. Some related font sizes are automatically calculated from it.', 'Avada' ),
'id' => 'bbp_forum_base_font_size',
'default' => '12px',
'type' => 'dimension',
'css_vars' => array(
array(
'name' => '--bbp_forum_base_font_size',
),
),
),
'bbp_forum_header_bg' => array(
'label' => esc_html__( 'bbPress Forum Header Background Color', 'Avada' ),
'description' => esc_html__( 'Controls the background color for forum header rows.', 'Avada' ),
'id' => 'bbp_forum_header_bg',
'default' => '#ebeaea',
'type' => 'color-alpha',
'css_vars' => array(
array(
'name' => '--bbp_forum_header_bg',
'callback' => [ 'sanitize_color' ],
),
),
),
'bbp_forum_header_font_color' => array(
'label' => esc_html__( 'bbPress Forum Header Font Color', 'Avada' ),
'description' => esc_html__( 'Controls the font color for the text in the forum header rows.', 'Avada' ),
'id' => 'bbp_forum_header_font_color',
'default' => '#747474',
'type' => 'color-alpha',
'css_vars' => array(
array(
'name' => '--bbp_forum_header_font_color',
'callback' => [ 'sanitize_color' ],
),
),
),
'bbp_forum_border_color' => array(
'label' => esc_html__( 'bbPress Forum Border Color', 'Avada' ),
'description' => esc_html__( 'Controls the border color for all forum surrounding borders.', 'Avada' ),
'id' => 'bbp_forum_border_color',
'default' => '#ebeaea',
'type' => 'color-alpha',
'css_vars' => array(
array(
'name' => '--bbp_forum_border_color',
'callback' => [ 'sanitize_color' ],
),
),
),
),
);
return $sections;
}