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

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

- Page: https://pluginprobe.com/plugins/post-carousel/2.3.6/code/admin/views/configs/settings/class-sps-scriptsandstyles.php
- Raw: https://pluginprobe.com/plugins/post-carousel/2.3.6/raw/admin/views/configs/settings/class-sps-scriptsandstyles.php
- Modified: 2021-09-27T05:53:22+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/2.3.6/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'  => __( 'Scripts & Styles', 'smart-post-show' ),
				'icon'   => 'fa fa-file-code-o',
				'fields' => array(
					array(
						'type'    => 'subheading',
						'content' => __( 'Enqueue or Dequeue JS', 'smart-post-show' ),
					),
					array(
						'id'         => 'pcp_swiper_js',
						'type'       => 'switcher',
						'title'      => __( 'Swiper JS', 'smart-post-show' ),
						'text_on'    => __( 'Enqueued', 'smart-post-show' ),
						'text_off'   => __( 'Dequeued', 'smart-post-show' ),
						'text_width' => 95,
						'default'    => true,
					),
					array(
						'type'    => 'subheading',
						'content' => __( 'Enqueue or Dequeue CSS', 'smart-post-show' ),
					),
					array(
						'id'         => 'pcp_swiper_css',
						'type'       => 'switcher',
						'title'      => __( 'Swiper CSS', 'smart-post-show' ),
						'text_on'    => __( 'Enqueued', 'smart-post-show' ),
						'text_off'   => __( 'Dequeued', 'smart-post-show' ),
						'text_width' => 95,
						'default'    => true,
					),
					array(
						'id'         => 'pcp_fontawesome_css',
						'type'       => 'switcher',
						'title'      => __( 'Font Awesome CSS', 'smart-post-show' ),
						'text_on'    => __( 'Enqueued', 'smart-post-show' ),
						'text_off'   => __( 'Dequeued', 'smart-post-show' ),
						'text_width' => 95,
						'default'    => true,
					),
				),
			)
		);
	}
}

```
