HEX
Server: LiteSpeed
System: Linux server.zepintelhosting.com 4.18.0 #1 SMP Mon Sep 30 15:36:27 MSK 2024 x86_64
User: enamadmin (1026)
PHP: 8.2.30
Disabled: exec,system,passthru,shell_exec,proc_open,popen,apache_child_terminate
Upload Files
File: /home/enamadmin/www/wp-content/themes/eduma/inc/admin/customizer-sections/general-custom-css.php
<?php
/**
 * Section Custom CSS
 *
 * @package Eduma
 */

thim_customizer()->add_section(
	array(
		'id'       => 'box_custom_css',
		'panel'    => 'general',
		'title'    => esc_html__( 'Custom CSS & JS', 'eduma' ),
		'priority' => 110,
	)
);

thim_customizer()->add_field( array(
	'type'        => 'code',
	'id'          => 'thim_custom_css',
	'label'       => esc_html__( 'Custom CSS', 'eduma' ),
	'description' => esc_html__( 'Just want to do some quick CSS changes? Enter theme here, they will be applied to the theme.', 'eduma' ),
	'section'     => 'box_custom_css',
	'default'     => '.test-class{ color: red; }',
	'priority'    => 10,
	'choices'     => array(
		'language' => 'scss',
		'theme'    => 'monokai',
		'height'   => 250,
	),
	'transport'   => 'postMessage',
	'js_vars'     => array()
) );

thim_customizer()->add_field( array(
	'type'        => 'code',
	'id'          => 'thim_custom_js',
	'label'       => esc_html__( 'Custom JS', 'eduma' ),
	'description' => esc_html__( 'Just want to do some quick JS changes? Enter theme here, they will be applied to the theme.', 'eduma' ),
	'section'     => 'box_custom_css',
	'default'     => '',
	'priority'    => 10,
	'choices'     => array(
		'language' => 'javascript',
		'theme'    => 'monokai',
		'height'   => 250,
	),
	'transport'   => 'postMessage',
	'js_vars'     => array()
) );