# post-carousel/4.0.2/admin/views/configs/settings/class-sps-customcss.php

Smart Post – Post Grid, Post Carousel, Post Slider Gutenberg Blocks for Blog &amp; News, version 4.0.2. 55 lines.

- Page: https://pluginprobe.com/plugins/post-carousel/4.0.2/code/admin/views/configs/settings/class-sps-customcss.php
- Raw: https://pluginprobe.com/plugins/post-carousel/4.0.2/raw/admin/views/configs/settings/class-sps-customcss.php
- Modified: 2025-08-25T10:53:50+00:00

Line numbers below start at 1. Link to a line or a range by appending a fragment to the
page URL, for example `https://pluginprobe.com/plugins/post-carousel/4.0.2/code/admin/views/configs/settings/class-sps-customcss.php#L10-L20`.

```php
<?php
/**
 * The Custom CSS and JavaScript setting configurations.
 *
 * @package Smart_Post_Show
 * @subpackage Smart_Post_Show/admin
 */

if ( ! defined( 'ABSPATH' ) ) {
	die; } // Cannot access pages directly.

/**
 * SPS_CustomCSS
 */
class SPS_CustomCSS {

	/**
	 * Custom CSS & JS settings.
	 *
	 * @param string $prefix The settings.
	 * @return void
	 */
	public static function section( $prefix ) {
		SP_PC::createSection(
			$prefix,
			array(
				'title'  => __( 'Additional CSS & JS', 'post-carousel' ),
				'icon'   => 'fa sps-icon-code',
				'fields' => array(
					array(
						'id'       => 'pcp_custom_css',
						'type'     => 'code_editor',
						'title'    => __( 'Custom CSS', 'post-carousel' ),
						'settings' => array(
							'icon'  => 'fa fa-sliders',
							'theme' => 'default',
							'mode'  => 'css',
						),
					),
					array(
						'id'       => 'pcp_custom_js',
						'type'     => 'code_editor',
						'title'    => __( 'Custom JS', 'post-carousel' ),
						'settings' => array(
							'icon'  => 'fa fa-sliders',
							'theme' => 'default',
							'mode'  => 'javascript',
						),
					),
				),
			)
		);
	}
}

```
