| Server IP : 149.28.60.191 / Your IP : 216.73.217.128 Web Server : nginx/1.31.1 System : Linux vultr.guest 5.4.0-216-generic #236-Ubuntu SMP Fri Apr 11 19:53:21 UTC 2025 x86_64 User : mda ( ) PHP Version : 7.4.33 Disable Function : getmyuid,passthru,leak,listen,diskfreespace,tmpfile,link,shell_exec,dl,exec,system,highlight_file,source,show_source,fpassthru,virtual,posix_ctermid,posix_getcwd,posix_getegid,posix_geteuid,posix_getgid,posix_getgrgid,posix_getgrnam,posix_getgroups,posix_getlogin,posix_getpgid,posix_getpgrp,posix_getpid,posix_getppid,posix_getpwuid,posix_getrlimit,posix_getsid,posix_getuid,posix_isatty,posix_kill,posix_mkfifo,posix_setegid,posix_seteuid,posix_setgid,posix_setpgid,posix_setsid,posix_setuid,posix_times,posix_ttyname,posix_uname,proc_open,proc_close,proc_nice,proc_terminate,escapeshellcmd,ini_alter,popen,pcntl_exec,socket_accept,socket_bind,socket_clear_error,socket_close,socket_connect,symlink,posix_geteuid,ini_alter,socket_listen,socket_create_listen,socket_read,socket_create_pair,stream_socket_server MySQL : OFF | cURL : ON | WGET : OFF | Perl : OFF | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : /home/mda/webapps/mda-restore/wp-content/themes/Avada/includes/options/ |
Upload File : |
<?php
/**
* Avada Options.
*
* @author ThemeFusion
* @copyright (c) Copyright by ThemeFusion
* @link https://theme-fusion.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_colors( $sections ) {
$sections['colors'] = [
'label' => esc_html__( 'Colors', 'Avada' ),
'id' => 'colors',
'priority' => 3,
'icon' => 'el-icon-brush',
'alt_icon' => 'fusiona-color-dropper',
'fields' => [
'colors_important_note_info' => [
'label' => '',
'description' => '<div class="fusion-redux-important-notice">' . __( '<strong>IMPORTANT NOTE:</strong> This tab contains general color options. Additional color options for specific areas, can be found within other tabs. Example: For menu color options go to the menu tab.', 'Avada' ) . '</div>',
'id' => 'colors_important_note_info',
'type' => 'custom',
'hide_on_front' => true,
],
'color_palette' => [
'label' => esc_html__( 'Color Palette', 'Avada' ),
'description' => __( 'Set your global color palette. The colors defined here can be used from other global options, from page options and element options. For best results, the 8 colors of the core palette should be set from lightest to darkest. <strong>IMPORTANT NOTE:</strong> If a global color that is used by other options gets deleted, these corresponding options will display a default color instead. Colors are internally stored with a fixed counter. Thus, adding a new color after deleting an old one, will set the same internal name to the new color.', 'Avada' ),
'id' => 'color_palette',
'default' => AWB_Global_Colors()->get_defaults(),
'type' => 'color-palette',
],
'primary_color' => [
'label' => esc_html__( 'Primary Color', 'Avada' ),
'description' => esc_html__( 'Controls the main highlight color throughout the website.', 'Avada' ),
'id' => 'primary_color',
'default' => 'var(--awb-color4)',
'type' => 'color-alpha',
'css_vars' => [
[
'name' => '--primary_color',
'callback' => [ 'sanitize_color' ],
],
[
'name' => '--primary_color-85a',
'callback' => [ 'color_alpha_set', '0.85' ],
],
[
'name' => '--primary_color-7a',
'callback' => [ 'color_alpha_set', '0.7' ],
],
[
'name' => '--primary_color-5a',
'callback' => [ 'color_alpha_set', '0.5' ],
],
[
'name' => '--primary_color-35a',
'callback' => [ 'color_alpha_set', '0.35' ],
],
[
'name' => '--primary_color-2a',
'callback' => [ 'color_alpha_set', '0.2' ],
],
],
],
],
];
return $sections;
}