# post-carousel/4.0.8/admin/views/configs/settings/class-sps-scriptsandstyles.php

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

- Page: https://pluginprobe.com/plugins/post-carousel/4.0.8/code/admin/views/configs/settings/class-sps-scriptsandstyles.php
- Raw: https://pluginprobe.com/plugins/post-carousel/4.0.8/raw/admin/views/configs/settings/class-sps-scriptsandstyles.php
- Modified: 2026-09-02T10:51:28+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.8/code/admin/views/configs/settings/class-sps-scriptsandstyles.php#L10-L20`.

```php
<?php
/**
 * The Enqueue and Dequeue CSS and JS files setting configurations.
 *
 * @package Smart_Post_Show
 * @subpackage Smart_Post_Show/admin
 */

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

/**
 * The Layout building class.
 */
class SPS_ScriptsAndStyles {

	/**
	 * Advanced setting section.
	 *
	 * @param string $prefix The settings.
	 * @return void
	 */
	public static function section( $prefix ) {
		SP_PC::createSection(
			$prefix,
			array(
				'title'  => __( 'Control Assets', 'post-carousel' ),
				'icon'   => 'fa fa-tasks',
				'fields' => array(
					array(
						'id'         => 'pcp_swiper_js',
						'type'       => 'switcher',
						'title'      => __( 'Swiper JS', 'post-carousel' ),
						'text_on'    => __( 'Enqueued', 'post-carousel' ),
						'text_off'   => __( 'Dequeued', 'post-carousel' ),
						'text_width' => 110,
						'default'    => true,
					),
					array(
						'id'         => 'pcp_swiper_css',
						'type'       => 'switcher',
						'title'      => __( 'Swiper CSS', 'post-carousel' ),
						'text_on'    => __( 'Enqueued', 'post-carousel' ),
						'text_off'   => __( 'Dequeued', 'post-carousel' ),
						'text_width' => 110,
						'default'    => true,
					),
					array(
						'id'         => 'pcp_fontawesome_css',
						'type'       => 'switcher',
						'title'      => __( 'Font Awesome CSS', 'post-carousel' ),
						'text_on'    => __( 'Enqueued', 'post-carousel' ),
						'text_off'   => __( 'Dequeued', 'post-carousel' ),
						'text_width' => 110,
						'default'    => true,
					),

					array(
						'id'         => 'pcp_delete_all_data',
						'type'       => 'checkbox',
						'class'      => 'pcp-delete-data',
						'title'      => __( 'Clean-up Data on Deletion', 'post-carousel' ),
						'title_info' => __( 'Delete all Smart Post Show data from the database on plugin uninstalling and deletion.', 'post-carousel' ),
						'default'    => false,
					),
				),
			)
		);
	}
}

```
